2 /* { dg-options "-Wmultistatement-macros" } */
3 /* { dg-do compile } */
6 tmp = x; /* { dg-warning "macro expands to multiple statements" } */ \
11 for (i = 0; i < 1; ++i) /* { dg-message "not guarded by this 'for' clause" } */ \
12 SWAP (x, y) /* { dg-message "in expansion of macro .SWAP." } */
15 for (i = 0; i < 1; ++i) \
19 for (i = 0; i < 1; ++i) \
23 for (i = 0; i < 1; ++i) /* { dg-message "not guarded by this 'for' clause" } */ \
25 SWAP (x, y) /* { dg-message "in expansion of macro .SWAP." } */
36 for (i
= 0; i
< 1; ++i
) /* { dg-message "not guarded by this 'for' clause" } */
37 SWAP (x
, y
); /* { dg-message "in expansion of macro .SWAP." } */
39 for (i
= 0; i
< 1; ++i
) /* { dg-message "not guarded by this 'for' clause" } */
41 SWAP (x
, y
); /* { dg-message "in expansion of macro .SWAP." } */
49 M1
; /* { dg-message "in expansion of macro .M1." } */
52 M4
; /* { dg-message "in expansion of macro .M4." } */
59 for (int i
= 0; i
< 1; ++i
)
62 for (int i
= 0; i
< 1; ++i
)