]> andersk Git - splint.git/blame - test/metastate/file1.c
Modified configure.ac to new longer check for c++.
[splint.git] / test / metastate / file1.c
CommitLineData
80ee600a 1static void checkOpen (/*@open@*/ /*@null@*/ FILE *);
2static void checkClosed (/*@closed@*/ /*@null@*/ FILE *);
3
4int main (void)
5{
6 FILE *fle = NULL;
7 char s[10];
8
9 checkClosed (fle); /* okay */
10 checkOpen (fle); /* error */
11
12 fle = fopen ("test", "r");
13
14 if (fle == NULL)
15 {
16 return 0;
17 }
18
19 checkClosed (fle); /* error */
20 checkOpen (fle); /* okay */
21
22 (void) fclose (fle);
23 checkOpen (fle); /* error */
24 checkClosed (fle); /* okay */
25
26 return 0;
27}
28
This page took 0.054138 seconds and 5 git commands to generate.