mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-08-20 11:28:59 +00:00
21 lines
570 B
C++
21 lines
570 B
C++
/* Deviance Test 3.3.5.1: Check error generation for #undef commands */
|
|
|
|
#undef Name #define Name "hey" /* macro replacement is NOT done */
|
|
/* for #undef commands */
|
|
|
|
#define A "5"
|
|
#define A "you"
|
|
#undef A /* check "stack model" of redefining*/
|
|
/* macros -- not ANSI C */
|
|
#define cantUseIt 10
|
|
#undef cantUseIt
|
|
|
|
main ()
|
|
{
|
|
char a[] = A;
|
|
int i;
|
|
|
|
i = cantUseIt;
|
|
printf ("Failed Deviance Test 3.3.5.1\n");
|
|
}
|