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
2011-11-10 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
struct-in-proto-1.c
1
/* { dg-do compile } */
2
/* { dg-options "-w" } */
3
int foo(struct S { int i; } s) {
4
return sizeof(struct S); /* { dg-bogus "incomplete type" "S visible here" } */
5
}
6
int bar(void) {
7
return sizeof(struct S); /* { dg-error "incomplete type" "not here" } */
8
}