Mercurial > hg > CbC > old > device
diff test/macro.c @ 177:352feeae4b0a
macro else/ccout
author | kono |
---|---|
date | Fri, 28 Nov 2003 15:16:43 +0900 |
parents | 096559f07a70 |
children | f00e3bfa1b45 |
line wrap: on
line diff
--- a/test/macro.c Fri Nov 28 13:58:39 2003 +0900 +++ b/test/macro.c Fri Nov 28 15:16:43 2003 +0900 @@ -29,6 +29,24 @@ #if 0 g(car(cadr(e)),cadr(e)); #endif +#if 0 + printf("1\n"); +#elif (1) + printf("2\n"); +#elif (2) + printf("3\n"); +#else + printf("4\n"); +#endif +#if 0 + printf("1\n"); +#elif (0) + printf("2\n"); +#elif (0) + printf("3\n"); +#else + printf("4\n"); +#endif return 0; }