ORCA-C/Tests/Conformance/C3.5.1.3.CC
2017-10-21 18:40:19 -05:00

17 lines
321 B
C++

/* Conformance Test 3.5.1.3: Verify macro expansion in #if commands */
#define VAL1 1
#undef VAL1
#if !VAL1 /* VAL1 should be undefined, and so evaluate as 0 */
main ()
{
printf ("Passed Conformance Test 3.5.1.3\n");
}
#else
main ()
{
printf ("Failed Conformance Test 3.5.1.3\n");
}
#endif