summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/920710-2.c
blob: dcaf1bea3cf11a086aac81b4a716cf7e155dec2c (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
25
26
27
28
29
30
31
32
33
34
35
36
union u
{
  struct {unsigned h, l;} i;
  double d;
};

foo (union u x)
{
  while (x.i.h++)
    {
      while (x.i.l-- > 0)
	;
      while (x.d++ > 0)
	;
    }
}

union n
{
  long long unsigned i;
  double d;
};

bar (union n x)
{
  int i;
  for (i = 0; i < 100; i++)
    {
      while (--x.i > 0)
	;
      while (++x.d > 0)
	;
    }
  return x.i;
}