Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.c-torture/compile/s.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 struct foo |
2 { | |
3 int a, b, c, d; | |
4 double doubl; | |
5 } s1, s2; | |
6 | |
7 struct foo | |
8 structret (s1, i1, i2, s2) | |
9 struct foo s1, s2; | |
10 int i1, i2; | |
11 { | |
12 if (i1 != i2) | |
13 { | |
14 if (i1 < i2) | |
15 return s1; | |
16 else | |
17 return s2; | |
18 } | |
19 s2.a = 11; | |
20 s2.b = 22; | |
21 s2.c = s1.c; | |
22 s2.d = s1.d; | |
23 return s2; | |
24 } |