testsuite: Skip analyzer tests on AIX.
[official-gcc.git] / gcc / testsuite / c-c++-common / Waddress-7.c
blob179948553c5fde4ed7c98a373d5aa37b4d788cd1
1 /* PR c/106947 */
2 /* { dg-do compile } */
3 /* { dg-options "-Waddress" } */
5 #ifndef __cplusplus
6 # define bool _Bool
7 #endif
9 #pragma GCC diagnostic ignored "-Waddress"
10 int s; /* { dg-bogus "declared" } */
11 bool e = &s;
12 int
13 main ()
15 int error = 0;
17 bool e1 = &s;
18 if (!e1)
19 error = 1;
21 return error;