testsuite: Skip analyzer tests on AIX.
[official-gcc.git] / gcc / testsuite / c-c++-common / analyzer / pr104062.c
blob9b44893dd4ba4cc0c59163e0564d24c63161af3e
1 void *
2 calloc (__SIZE_TYPE__, __SIZE_TYPE__);
4 void *
5 realloc (void *, __SIZE_TYPE__);
7 void
8 foo (void)
10 int *ap5 = (int *) calloc (4, sizeof *ap5);
11 int *ap7 = (int *) realloc (ap5, sizeof *ap5);
12 } /* { dg-warning "leak of 'ap5'" "leak of ap5" } */
13 /* { dg-warning "leak of 'ap7'" "leak of ap7" { target *-*-* } .-1 } */