mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-11-05 17:07:26 +00:00
1 line
430 B
C++
Executable File
1 line
430 B
C++
Executable File
/* Deviance Test 17.2.0.2: Ensure illegal parameters supplied to freopen */
|
|
/* are detected */
|
|
|
|
#include <stdio.h>
|
|
|
|
main ()
|
|
{
|
|
FILE *f1;
|
|
|
|
f1 = freopen ("123badfile", "r", f1); /* invalid stream to freopen */
|
|
if (f1 != NULL)
|
|
goto Fail;
|
|
|
|
printf ("Passed Deviance Test 17.2.0.2\n");
|
|
return;
|
|
|
|
Fail:
|
|
printf ("Failed Deviance Test 17.2.0.2\n");
|
|
}
|