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