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
* gcc.c-torture/execute/20101011-1.c: Skip on SH.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
990525-2.c
blob
749785262efc534e7eb3669aa732ade90f5e1455
1
typedef
struct
{
2
int
v
[
4
];
3
}
Test1
;
4
5
Test1
func2
();
6
7
int
func1
()
8
{
9
Test1 test
;
10
test
=
func2
();
11
12
if
(
test
.
v
[
0
] !=
10
)
13
abort
();
14
if
(
test
.
v
[
1
] !=
20
)
15
abort
();
16
if
(
test
.
v
[
2
] !=
30
)
17
abort
();
18
if
(
test
.
v
[
3
] !=
40
)
19
abort
();
20
}
21
22
Test1
func2
()
23
{
24
Test1 tmp
;
25
tmp
.
v
[
0
] =
10
;
26
tmp
.
v
[
1
] =
20
;
27
tmp
.
v
[
2
] =
30
;
28
tmp
.
v
[
3
] =
40
;
29
return
tmp
;
30
}
31
32
33
int
main
()
34
{
35
func1
();
36
exit
(
0
);
37
}
38
39