1 /* { dg-options "-Wuninitialized" } */
3 /* Verify disabling a warning, where the _Pragma is in regular code,
4 but the affected code is within a macro. */
6 #define WARNABLE_CODE *++yyvsp = yylval; /* { dg-bogus "used uninitialized" } */
8 void test (char yylval
)
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\"")
15 _Pragma ("GCC diagnostic pop")