Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.c-torture/compile/920710-2.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 union u |
2 { | |
3 struct {unsigned h, l;} i; | |
4 double d; | |
5 }; | |
6 | |
7 foo (union u x) | |
8 { | |
9 while (x.i.h++) | |
10 { | |
11 while (x.i.l-- > 0) | |
12 ; | |
13 while (x.d++ > 0) | |
14 ; | |
15 } | |
16 } | |
17 | |
18 union n | |
19 { | |
20 long long unsigned i; | |
21 double d; | |
22 }; | |
23 | |
24 bar (union n x) | |
25 { | |
26 int i; | |
27 for (i = 0; i < 100; i++) | |
28 { | |
29 while (--x.i > 0) | |
30 ; | |
31 while (++x.d > 0) | |
32 ; | |
33 } | |
34 return x.i; | |
35 } | |
36 |