Debian Codegraph @

gcc/testsuite/c-c++-common/analyzer/data-model-4.c

raw
1 /* { dg-additional-options "-fexceptions" } */
2 /* TODO:is there a way to automatically run the tests on various
3 optimizations levels, and with/without debuginfo, rather than
4 hardcoding options? Adapt from torture .exp, presumably. */
5
6 #include <stdio.h>
7 int
8 main ()
9 {
10 FILE *f = fopen ("conftest.out", "w");
11 if (f == NULL)
12 return 1;
13 return ferror (f) || fclose (f) != 0;
14
15 ;
16 return 0;
17 }
18