19 lines
369 B
C++
19 lines
369 B
C++
/* Conformance Test 3.5.1.3: Verify macro expansion in #if commands */
|
|
|
|
int printf(const char *, ...);
|
|
|
|
#define VAL1 1
|
|
#undef VAL1
|
|
|
|
#if !VAL1 /* VAL1 should be undefined, and so evaluate as 0 */
|
|
int main (void)
|
|
{
|
|
printf ("Passed Conformance Test 3.5.1.3\n");
|
|
}
|
|
#else
|
|
int main (void)
|
|
{
|
|
printf ("Failed Conformance Test 3.5.1.3\n");
|
|
}
|
|
#endif
|