repo.or.cz
/
official-gcc
/
graphite-test-results.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git]
/
gcc
/
testsuite
/
gcc.dg
/
struct-in-proto-1.c
blob
162ba914aa93144bc919d4ca66fdf989169c2586
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
}