* gcc.dg/predict-12.c: New testcase.
[official-gcc.git] / gcc / testsuite / gcc.dg / cpp / macro-exp-tracking-2.c
blob2367765ccef8723b4ac7faed59162310b85028de
1 /*
2 { dg-options "-ftrack-macro-expansion=1" }
3 { dg-do compile }
4 */
6 #define OPERATE(OPRD1, OPRT, OPRD2) \
7 OPRD1 OPRT OPRD2; /* { dg-message "in definition of macro 'OPERATE'" } */
9 #define SHIFTL(A,B) \
10 OPERATE (A,<<,B) /* { dg-message "invalid operands to binary <<" } */
12 #define MULT(A) \
13 SHIFTL (A,1) /* { dg-message "in expansion of macro 'SHIFTL'" } */
15 void
16 foo ()
18 MULT (1.0); /* { dg-message "in expansion of macro 'MULT'" } */