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
2018-01-24 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
c99-anon-struct-1.c
blob
87d4c3438eb7586af1c22d8790297d209f5c0432
1
/* Test for anonymous structures and unions not permitted in C99. */
2
/* { dg-do compile } */
3
/* { dg-options "-std=iso9899:1999 -pedantic-errors" } */
4
5
struct
s
6
{
7
int
a
;
8
struct
9
{
10
int
b
;
11
};
/* { dg-error "unnamed structs" } */
12
};