OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2010-05-09 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
empty2.c
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
}