1 /* { dg-additional-options "-fanalyzer-verbose-state-changes" } */
3 typedef struct FILE FILE;
4 FILE* fopen (const char*, const char*);
7 void test_1 (const char *path
)
9 FILE *f
= fopen (path
, "r"); /* { dg-message "meaning: \\{verb: 'acquire', noun: 'resource'\\}" } */
13 fclose (f
); /* { dg-message "meaning: \\{verb: 'release', noun: 'resource'\\}" } */
14 fclose (f
); /* { dg-warning "double 'fclose' of FILE 'f'" "warning" } */