summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/unsorted/s.c
blob: e0c84262208ad5afa26436c375eef8147212b165 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
struct foo
{
  int a, b, c, d;
  double doubl;
} s1, s2;

struct foo
structret (s1, i1, i2, s2)
     struct foo s1, s2;
     int i1, i2;
{
  if (i1 != i2)
    {
      if (i1 < i2)
	return s1;
      else
	return s2;
    }
  s2.a = 11;
  s2.b = 22;
  s2.c = s1.c;
  s2.d = s1.d;
  return s2;
}