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
2014-07-29 Ed Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
20011008-2.c
blob
01ff172b4ff03023d3fd1205ac6e9e34ee2681fa
1
/* { dg-do run } */
2
/* { dg-options "-O0" } */
3
4
extern
void
abort
(
void
);
5
extern
void
exit
(
int
);
6
7
struct
{
union
{
int
x
;
int
y
;};
int
q
; }
b
;
8
union
{
struct
{
int
x
;};
int
q
; }
e
;
9
10
main
()
11
{
12
b
.
y
=
10
;
13
b
.
x
=
15
;
14
if
(
b
.
y
!=
15
)
15
abort
();
16
17
e
.
x
=
10
;
18
e
.
q
=
15
;
19
if
(
e
.
x
!=
15
)
20
abort
();
21
22
exit
(
0
);
23
}