2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / cpp / 19921210-1.c
blob32d2a816ece7adbcca438fe0944a3e2cba76e77d
1 /* Test for proper disabling of macros within their own expansions. */
2 /* { dg-do compile } */
4 /* The following is a trick to evaluate a complex boolean expression
5 at compile time, inspired by autoconf 2.13's sizeof-detection. */
7 enum { a = 4, f = 3 };
9 #define a1(y) (y+2)
10 #define a2(y) a1(y)+1
11 #define f a+f
13 char array[(a2(f)) == 10 ? 1 : -1];