mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2025-01-08 13:29:54 +00:00
1 line
460 B
C++
Executable File
1 line
460 B
C++
Executable File
/* Deviance Test 8.8.0.1: Ensure illegal break and continue statements are */
|
|
/* detected */
|
|
|
|
#include <stdio.h>
|
|
|
|
main ()
|
|
{
|
|
break; /* break outside of while, do, for, switch statement */
|
|
continue; /* continue outside of while, do, for statement */
|
|
|
|
switch (1)
|
|
{
|
|
case 1: continue;
|
|
}
|
|
|
|
printf ("Failed Deviance Test 8.8.0.1\n");
|
|
}
|