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