2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / combine-hang.c
blob7cc57afe603ef37d858c2a95e7d07d4f02694755
1 typedef union
3 double value;
4 struct
6 unsigned long msw;
7 unsigned long lsw;
8 } parts;
9 } ieee_double_shape_type;
11 double f (int iy)
13 double z, t;
14 ieee_double_shape_type u, v;
16 if (iy == 1)
17 return 0;
19 u.parts.msw = iy;
20 u.parts.lsw = 0;
21 z = u.value;
22 v.parts.msw = iy;
23 v.parts.lsw = 0;
24 t = v.value;
25 return 1.0+z+t+t;