1 /* Test for proper disabling of macros within their own expansions. */ 2 /* { dg-do compile } */ 3 4 /* The following is a trick to evaluate a complex boolean expression 5 at compile time, inspired by autoconf 2.13's sizeof-detection. */ 6 7 enum { a = 4, f = 3 }; 8 9 #define a1(y) (y+2) 10 #define a2(y) a1(y)+1 11 #define f a+f 12 13 char array[(a2(f)) == 10 ? 1 : -1]; 14