2 /* { dg-options "-Wmultistatement-macros" } */
3 /* { dg-do compile } */
6 tmp = x; /* { dg-warning "macro expands to multiple statements" } */ \
11 while (x) /* { dg-message "not guarded by this 'while' claus" } */ \
12 SWAP (x, y) /* { dg-message "in expansion of macro .SWAP." } */
23 while (x) /* { dg-message "not guarded by this 'while' claus" } */ \
25 SWAP (x, y) /* { dg-message "in expansion of macro .SWAP." } */
35 while (x
) /* { dg-message "not guarded by this 'while' claus" } */
36 SWAP (x
, y
); /* { dg-message "in expansion of macro .SWAP." } */
38 while (x
) /* { dg-message "not guarded by this 'while' claus" } */
40 SWAP (x
, y
); /* { dg-message "in expansion of macro .SWAP." } */
47 M1
; /* { dg-message "in expansion of macro .M1." } */
50 M4
; /* { dg-message "in expansion of macro .M4." } */