Merge from mainline.
[official-gcc.git] / gcc / testsuite / gcc.dg / empty2.c
blob54b98f6f0b3be7da1bff9ac4b97e91d5c8ef82c0
1 /* { dg-do compile } */
3 double d=0;
5 struct A {} a; /* { dg-warning "(has no members)" } */
7 void foo(struct A x)
9 d=0;
12 void bar()
14 if (d) foo(a);