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
* Makefile.in: Rebuilt.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
compat
/
struct-ii.c
blob
11ebc37edbd11febe2f742f8528a0c892067b7ef
1
typedef
struct
{
int
a
,
b
;}
T
;
2
3
int
h
(
T
*);
4
T
g
(
T
);
5
6
#if COMPILER != 1
7
h
(
T
*
x
)
8
{
9
if
(
x
->
a
!=
0
||
x
->
b
!=
1
)
10
abort
();
11
}
12
#endif
13
14
#if COMPILER != 2
15
T
16
g
(
T x
)
17
{
18
if
(
x
.
a
!=
13
||
x
.
b
!=
47
)
19
abort
();
20
x
.
a
=
0
;
21
x
.
b
=
1
;
22
h
(&
x
);
23
return
x
;
24
}
25
#endif
26
27
#if COMPILER != 1
28
f
()
29
{
30
T x
;
31
x
.
a
=
13
;
32
x
.
b
=
47
;
33
g
(
x
);
34
if
(
x
.
a
!=
13
||
x
.
b
!=
47
)
35
abort
();
36
x
=
g
(
x
);
37
if
(
x
.
a
!=
0
||
x
.
b
!=
1
)
38
abort
();
39
}
40
#endif
41
42
#if COMPILER != 2
43
main
()
44
{
45
f
();
46
exit
(
0
);
47
}
48
#endif