2017-10-21 18:40:19 -05:00
|
|
|
/* Conformance Test 2.6.0.2: Check if reserved words can be used as */
|
|
|
|
/* preprocessor macro names */
|
|
|
|
|
2022-10-17 17:50:42 -05:00
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
int printf(const char *, ...);
|
|
|
|
|
2017-10-21 18:40:19 -05:00
|
|
|
#define goto 1
|
|
|
|
#define if 2
|
|
|
|
#define return 3
|
|
|
|
|
2022-10-17 17:50:42 -05:00
|
|
|
int main (void)
|
2017-10-21 18:40:19 -05:00
|
|
|
{
|
|
|
|
|
|
|
|
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");
|
|
|
|
}
|