Skip several analyzer socket tests on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / c-c++-common / pr69543-3.c
blob6d4224f4af759b81b86cf37e1902b5d83fdba3fd
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\"")
14 WARNABLE_CODE
15 _Pragma ("GCC diagnostic pop")