1 /* { dg-do compile } */ 2 /* { dg-options "-pedantic" } */ 3 double d=0; 4 5 struct A {} a; /* { dg-warning "struct has no members" } */ 6 foo(struct A x)7 void foo(struct A x) 8 { 9 d=0; 10 } 11 bar()12 void bar() 13 { 14 if (d) foo(a); 15 } 16