(root)/
gcc-13.2.0/
gcc/
testsuite/
c-c++-common/
pr69543-2.c
       1  /* { dg-options "-Wuninitialized" } */
       2  
       3  /* Verify disabling a warning, where both the _Pragma and the
       4     affected code are *not* in a macro.  */
       5  
       6  void test (char yylval)
       7  {
       8    char *yyvsp;
       9    _Pragma ("GCC diagnostic push")
      10    _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")
      11    _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
      12    *++yyvsp = yylval;
      13    _Pragma ("GCC diagnostic pop")
      14  }