mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-07-07 18:29:05 +00:00
1 line
489 B
Plaintext
1 line
489 B
Plaintext
|
/* Deviance Test 3.5.5.1: Ensure invalid defined expressions are caught */
#define NAME "hey, you!"
main ()
{
if (defined NAME) /* defined can only appear in #if or #elif */
;
while (! (defined (NONAME)) )
;
do
while (defined (NAME));
for (;defined (NAME);;)
;
switch (defined (NAME))
;
#if defined /* missing name operand */
#elif defined
#endif
printf ("Failed Deviance Test 3.5.5.1\n");
}
|