OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Backported from mainline
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
921112-1.c
1
union u {
2
struct { int i1, i2; } t;
3
double d;
4
} x[2], v;
5
6
f (x, v)
7
union u *x, v;
8
{
9
*++x = v;
10
}
11
12
main()
13
{
14
x[1].t.i1 = x[1].t.i2 = 0;
15
v.t.i1 = 1;
16
v.t.i2 = 2;
17
f (x, v);
18
if (x[1].t.i1 != 1 || x[1].t.i2 != 2)
19
abort ();
20
exit (0);
21
}