blob: d975c8cee97f2b8986d146db8bd4334243f7538d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/*
{ dg-options "-ftrack-macro-expansion=1" }
{ dg-do compile }
*/
#define OPERATE(OPRD1, OPRT, OPRD2) \
do \
{ \
OPRD1 OPRT OPRD2; /* { dg-message "expansion" }*/ \
} while (0)
#define SHIFTL(A,B) \
OPERATE (A,<<,B) /* { dg-message "expanded|expansion" } */
void
foo ()
{
SHIFTL (0.1,0.2); /* { dg-message "expanded" } */
}
/* { dg-error "invalid operands" "" { target *-*-* } 13 } */
|