2 /* { dg-options "-Wmultistatement-macros" } */
3 /* { dg-do compile } */
6 tmp = x; /* { dg-warning "macro expands to multiple statements" } */ \
11 switch (x) /* { dg-message "not guarded by this 'switch' clause" } */ \
13 SWAP (x, y) /* { dg-message "in expansion of macro .SWAP." } */
26 switch (x) /* { dg-message "not guarded by this 'switch' clause" } */ \
29 SWAP (x, y) /* { dg-message "in expansion of macro .SWAP." } */
39 switch (x
) /* { dg-message "not guarded by this 'switch' clause" } */
41 SWAP (x
, y
); /* { dg-message "in expansion of macro .SWAP." } */
43 switch (x
) /* { dg-message "not guarded by this 'switch' clause" } */
49 SWAP (x
, y
); /* { dg-message "in expansion of macro .SWAP." } */
55 M1
; /* { dg-message "in expansion of macro .M1." } */
58 M4
; /* { dg-message "in expansion of macro .M4." } */