2017-10-21 23:40:19 +00:00
|
|
|
/* Conformance Test 3.5.2.3: Verification of nested #elif commands */
|
|
|
|
|
2022-10-17 22:50:42 +00:00
|
|
|
int printf(const char *, ...);
|
|
|
|
|
2017-10-21 23:40:19 +00:00
|
|
|
#define PASS "Passed Conformance Test 3.5.2.3\n"
|
|
|
|
#define FAIL "Failed Conformance Test 3.5.2.3\n"
|
|
|
|
|
2022-10-17 22:50:42 +00:00
|
|
|
int main (void)
|
2017-10-21 23:40:19 +00:00
|
|
|
{
|
|
|
|
#if 1
|
|
|
|
#if 2
|
|
|
|
#if 0
|
|
|
|
printf (FAIL);
|
|
|
|
#elif 0
|
|
|
|
printf (FAIL);
|
|
|
|
#elif 32767
|
|
|
|
printf (PASS);
|
|
|
|
#endif
|
|
|
|
#elif 3
|
|
|
|
printf (FAIL);
|
|
|
|
#elif 0
|
|
|
|
printf (FAIL);
|
|
|
|
#else
|
|
|
|
printf (FAIL);
|
|
|
|
#endif
|
|
|
|
#elif 5
|
|
|
|
printf (FAIL);
|
|
|
|
#elif 6
|
|
|
|
printf (FAIL);
|
|
|
|
#elif 7
|
|
|
|
printf (FAIL);
|
|
|
|
#elif 8
|
|
|
|
printf (FAIL);
|
|
|
|
#elif 0
|
|
|
|
printf (FAIL);
|
|
|
|
#else
|
|
|
|
printf (FAIL);
|
|
|
|
#endif
|
|
|
|
}
|