Sign in
chromium
/
chromiumos
/
third_party
/
gcc
/
refs/heads/stabilize-5116.115.B
/
.
/
gcc
/
testsuite
/
gcc.dg
/
empty2.c
blob: acc1ac8ddcb4a10158467b599c48bbae64f01c7e [
file
] [
log
] [
blame
]
/* { 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
);
}