(root)/
gcc-13.2.0/
gcc/
testsuite/
c-c++-common/
pr69543-3.c
       1  /* { dg-options "-Wuninitialized" } */
       2  
       3  /* Verify disabling a warning, where the _Pragma is in regular code,
       4     but the affected code is within a macro.  */
       5  
       6  #define WARNABLE_CODE *++yyvsp = yylval; /* { dg-bogus "used uninitialized" } */
       7  
       8  void test (char yylval)
       9  {
      10    char *yyvsp; /* { dg-bogus "declared here" } */
      11    _Pragma ("GCC diagnostic push")
      12    _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")
      13    _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
      14    WARNABLE_CODE
      15    _Pragma ("GCC diagnostic pop")
      16  }