1 /* PR preprocessor/69543 */ 2 /* { dg-do compile } */ 3 /* { dg-options "-O2 -Wuninitialized" } */ 4 5 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ 6 _Pragma ("GCC diagnostic push") \ 7 _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\ 8 _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") 9 # define YY_IGNORE_MAYBE_UNINITIALIZED_END \ 10 _Pragma ("GCC diagnostic pop") 11 test(char yylval)12void test (char yylval) 13 { 14 char *yyvsp; 15 YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN 16 *++yyvsp = yylval; 17 YY_IGNORE_MAYBE_UNINITIALIZED_END 18 } 19