gcc/testsuite/gcc.c-torture/compile/s.c
raw| 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 | } |