Document gcov-io (PR gcov-profile/84735).
[official-gcc.git] / gcc / testsuite / gcc.dg / cpp / macro-exp-tracking-1.c
blob28ef7955c9bc8a9cf66c3d3e91a30c755ee4fa85
1 /*
2 { dg-options "-ftrack-macro-expansion=1" }
3 { dg-do compile }
4 */
6 #define OPERATE(OPRD1, OPRT, OPRD2) \
7 do \
8 { \
9 OPRD1 OPRT OPRD2; /* { dg-message "definition" }*/ \
10 } while (0)
12 #define SHIFTL(A,B) \
13 OPERATE (A,<<,B) /* { dg-error "invalid operands" } */
15 void
16 foo ()
18 SHIFTL (0.1,0.2); /* { dg-message "in expansion of macro \[^\n\r\]SHIFTL" } */