2017-10-21 18:40:19 -05:00
|
|
|
/* Deviance Test 3.5.2.1: Ensure illegal #elif commands are flagged as errors */
|
|
|
|
|
2022-10-17 17:50:42 -05:00
|
|
|
int printf(const char *, ...);
|
|
|
|
|
2017-10-21 18:40:19 -05:00
|
|
|
#if 0
|
|
|
|
#define WHO_CARES 0
|
|
|
|
#elif 0
|
|
|
|
#if 1
|
|
|
|
#define WHO_REALLY_CARES 1
|
|
|
|
#elif 2
|
|
|
|
#define ARE_YOU_KIDDING 2
|
|
|
|
#elif 3
|
|
|
|
#define WHATS_FOR_LUNCH 3
|
|
|
|
#else
|
|
|
|
#define LETS_LEAVE_OFF "endif"
|
|
|
|
|
|
|
|
#elif 1
|
|
|
|
#define CATS_R_US 'c'
|
|
|
|
#if CATS_R_US
|
|
|
|
#define DOGS_R_US 'd'
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#else
|
|
|
|
#define LETS_NOT_LEAVE_OFF "endif"
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 0
|
|
|
|
#elif /* no expression */
|
|
|
|
#endif
|
|
|
|
|
2022-10-17 17:50:42 -05:00
|
|
|
int main (void)
|
2017-10-21 18:40:19 -05:00
|
|
|
{
|
|
|
|
printf ("Failed Deviance Test 3.5.2.1\n");
|
|
|
|
}
|