repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2014-04-15 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
empty2.c
blob
acc1ac8ddcb4a10158467b599c48bbae64f01c7e
1
/* { dg-do compile } */
2
/* { dg-options "-pedantic" } */
3
double
d
=
0
;
4
5
struct
A
{}
a
;
/* { dg-warning "struct has no members" } */
6
7
void
foo
(
struct
A x
)
8
{
9
d
=
0
;
10
}
11
12
void
bar
()
13
{
14
if
(
d
)
foo
(
a
);
15
}