mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-08-20 11:28:59 +00:00
1 line
436 B
C++
Executable File
1 line
436 B
C++
Executable File
/* Deviance Test 17.2.0.3: Ensure illegal parameters supplied to freopen */
|
|
/* are detected */
|
|
|
|
#include <stdio.h>
|
|
|
|
main ()
|
|
{
|
|
FILE *f1;
|
|
|
|
f1 = freopen ("3/thirdFile", "t", f1); /* try to open with invalid type */
|
|
if (f1 != NULL)
|
|
goto Fail;
|
|
|
|
printf ("Passed Deviance Test 17.2.0.3\n");
|
|
return;
|
|
|
|
Fail:
|
|
printf ("Failed Deviance Test 17.2.0.3\n");
|
|
}
|