* gcc.c-torture/execute/20101011-1.c: Skip on SH.
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 990525-2.c
blob749785262efc534e7eb3669aa732ade90f5e1455
1 typedef struct {
2 int v[4];
3 } Test1;
5 Test1 func2();
7 int func1()
9 Test1 test;
10 test = func2();
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 ();
22 Test1 func2()
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;
33 int main()
35 func1();
36 exit (0);