mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-11-19 03:07:00 +00:00
1 line
605 B
C++
Executable File
1 line
605 B
C++
Executable File
/* Conformance Test 2.6.0.2: Check if reserved words can be used as */
|
|
/* preprocessor macro names */
|
|
|
|
#define goto 1
|
|
#define if 2
|
|
#define return 3
|
|
|
|
main ()
|
|
{
|
|
|
|
while (goto != 1)
|
|
{
|
|
printf ("Failed Conformance Test 2.6.0.2\n");
|
|
exit (1);
|
|
}
|
|
|
|
while (if != 2)
|
|
{
|
|
printf ("Failed Conformance Test 2.6.0.2\n");
|
|
exit (1);
|
|
}
|
|
|
|
while (return != 3)
|
|
{
|
|
printf ("Failed Conformance Test 2.6.0.2\n");
|
|
exit (1);
|
|
}
|
|
|
|
printf ("Passed Conformance Test 2.6.0.2\n");
|
|
}
|