testsuite: Skip analyzer tests on AIX.
[official-gcc.git] / gcc / testsuite / c-c++-common / analyzer / scope-1.c
blob09e62d46df3555690d7fc2efd4288b228b2a930c
1 #include <stdlib.h>
3 int test_1 (void)
6 int *q = (int *) malloc (1024);
9 return 42; /* { dg-warning "leak of 'q'" } */
10 // FIXME: would be better to report it at the close-of-scope
13 int test_2 (void)
16 void *q = malloc (1024);
19 int q = 42;
21 return q; /* { dg-warning "leak of 'q'" } */
22 // FIXME: would be better to report it at the close-of-scope