annotate gcc/testsuite/gcc.dg/cpp/macro-exp-tracking-2.c @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /*
kono
parents:
diff changeset
2 { dg-options "-ftrack-macro-expansion=1" }
kono
parents:
diff changeset
3 { dg-do compile }
kono
parents:
diff changeset
4 */
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 #define OPERATE(OPRD1, OPRT, OPRD2) \
kono
parents:
diff changeset
7 OPRD1 OPRT OPRD2; /* { dg-message "in definition of macro 'OPERATE'" } */
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 #define SHIFTL(A,B) \
kono
parents:
diff changeset
10 OPERATE (A,<<,B) /* { dg-message "invalid operands to binary <<" } */
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 #define MULT(A) \
kono
parents:
diff changeset
13 SHIFTL (A,1) /* { dg-message "in expansion of macro 'SHIFTL'" } */
kono
parents:
diff changeset
14
kono
parents:
diff changeset
15 void
kono
parents:
diff changeset
16 foo ()
kono
parents:
diff changeset
17 {
kono
parents:
diff changeset
18 MULT (1.0); /* { dg-message "in expansion of macro 'MULT'" } */
kono
parents:
diff changeset
19 }
kono
parents:
diff changeset
20