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
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
union-duplicate-field.c
blob
da9a945d9f386df33e170ef0d2fed7f152099873
1
/* { dg-do compile } */
2
/* { dg-options "-std=c99" } */
3
4
int
a0
;
5
6
struct
S
7
{
8
int
a1
;
9
union
{
10
int
a0
;
11
int
a1
;
/* { dg-error "duplicate member" } */
12
int
a2
,
a3
,
a4
,
a5
,
a6
,
a7
,
a8
,
a9
;
13
int
a10
,
a11
,
a12
,
a13
,
a14
,
a15
;
14
};
15
};
16
17
int
f
()
18
{
19
struct
S s
;
20
return
s
.
a0
;
21
}