testsuite: Skip analyzer tests on AIX.
[official-gcc.git] / gcc / testsuite / c-c++-common / analyzer / file-3.c
blob8f93a986deb5bca91deb06e61a83b631c80e47dc
1 typedef struct _IO_FILE FILE;
2 extern struct _IO_FILE *stderr;
4 extern FILE *fopen (const char *__restrict __filename,
5 const char *__restrict __modes);
6 extern int _IO_getc (FILE *stream);
8 void
9 test_1 (const char *path)
11 FILE *f = fopen (path, "r"); /* { dg-message "opened here" } */
13 /* Implementation of getc in glibc < 2.28.
14 Verify that we know that this doesn't close the file. */
15 _IO_getc (f);
17 return; /* { dg-warning "leak of FILE 'f'" } */