Mercurial > hg > CbC > CbC_gcc
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 |
rev | line source |
---|---|
111 | 1 /* |
2 { dg-options "-ftrack-macro-expansion=1" } | |
3 { dg-do compile } | |
4 */ | |
5 | |
6 #define OPERATE(OPRD1, OPRT, OPRD2) \ | |
7 OPRD1 OPRT OPRD2; /* { dg-message "in definition of macro 'OPERATE'" } */ | |
8 | |
9 #define SHIFTL(A,B) \ | |
10 OPERATE (A,<<,B) /* { dg-message "invalid operands to binary <<" } */ | |
11 | |
12 #define MULT(A) \ | |
13 SHIFTL (A,1) /* { dg-message "in expansion of macro 'SHIFTL'" } */ | |
14 | |
15 void | |
16 foo () | |
17 { | |
18 MULT (1.0); /* { dg-message "in expansion of macro 'MULT'" } */ | |
19 } | |
20 |