2017-10-21 18:40:19 -05:00
|
|
|
/* Conformance Test 3.5.1.5: Ensure #if, #else with no lines to compile */
|
|
|
|
/* are not errors */
|
|
|
|
|
2022-10-17 17:50:42 -05:00
|
|
|
int printf(const char *, ...);
|
|
|
|
|
2017-10-21 18:40:19 -05:00
|
|
|
#if 5
|
|
|
|
#else
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if !0
|
|
|
|
#define TRUE 1
|
|
|
|
#else
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 32767
|
|
|
|
#else
|
|
|
|
#define FALSE 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(FALSE)
|
|
|
|
#define fail 1
|
|
|
|
#else
|
|
|
|
#define fail 0
|
|
|
|
#endif
|
|
|
|
|
2022-10-17 17:50:42 -05:00
|
|
|
int main (void)
|
2017-10-21 18:40:19 -05:00
|
|
|
{
|
|
|
|
if (TRUE != 1)
|
|
|
|
goto Fail;
|
|
|
|
|
|
|
|
if (fail)
|
|
|
|
goto Fail;
|
|
|
|
|
|
|
|
printf ("Passed Conformance Test 3.5.1.5\n");
|
2022-10-17 17:50:42 -05:00
|
|
|
return 0;
|
2017-10-21 18:40:19 -05:00
|
|
|
|
|
|
|
Fail:
|
|
|
|
printf ("Failed Conformance Test 3.5.1.5\n");
|
|
|
|
}
|
|
|
|
|
|
|
|
|