mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-11-15 07:06:05 +00:00
21 lines
440 B
C++
21 lines
440 B
C++
/* Deviance Test 17.2.0.4: Ensure illegal parameters supplied to fclose */
|
|
/* are detected */
|
|
|
|
#include <stdio.h>
|
|
|
|
main ()
|
|
{
|
|
FILE *f1;
|
|
int i;
|
|
|
|
i = fclose (f1); /* pass fclose an invalid file pointer */
|
|
if (i != EOF)
|
|
goto Fail;
|
|
|
|
printf ("Passed Deviance Test 17.2.0.4\n");
|
|
return;
|
|
|
|
Fail:
|
|
printf ("Failed Deviance Test 17.2.0.4\n");
|
|
}
|