libgo: update to Go1.10beta1
[official-gcc.git] / gcc / testsuite / c-c++-common / pr69543-2.c
blob4099fb2555f1a224c852f4195ea28678cae9e674
1 /* { dg-options "-Wuninitialized" } */
3 /* Verify disabling a warning, where both the _Pragma and the
4 affected code are *not* in a macro. */
6 void test (char yylval)
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")