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
Add __builtion_unreachable to vector::size(), vector::capacity()
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
incomplete-typedef-1.c
blob
622bf6504216d085d739e4d2a1f1244262cb4dd4
1
/* { dg-do compile } */
2
/* { dg-options "" } */
3
4
typedef
struct
S TS
;
5
typedef
union
U TU
;
6
7
void
8
foo
(
void
)
9
{
10
(
TS
) { };
/* { dg-error "invalid use of incomplete typedef" } */
11
(
TU
) { };
/* { dg-error "invalid use of incomplete typedef" } */
12
}