2 /* { dg-options "-Wmisleading-indentation" } */
6 void test01(int flag
) {
7 #define bar() foo() /* { dg-message "this statement" } */
8 if (flag
) /* { dg-warning "does not guard" } */
10 bar(); /* { dg-message "in expansion of macro" } */
14 void test02(int flag
) {
16 if (flag
) /* { dg-warning "does not guard" } */
18 foo(); /* { dg-message "this statement" } */
22 void test03(int flag
) {
23 #define bar() foo() /* { dg-message "this statement" } */
24 if (flag
) /* { dg-warning "does not guard" } */
26 bar(); /* { dg-message "in expansion of macro" } */
30 void test04(int flag
, int num
) {
38 /* { dg-warning "does not guard" "" { target *-*-* } .-5 } */
39 /* { dg-message "this statement" "" { target *-*-* } .-4 } */
43 void test05(int flag
, int num
) {
44 #define baz() (num = 1)
53 /* { dg-warning "does not guard" "" { target *-*-* } .-6 } */
54 /* { dg-message "this statement" "" { target *-*-* } .-10 } */