Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/pr81227.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* Copy of gcc.c-torture/compile/pr80443.c */ | |
2 /* { dg-do compile } */ | |
3 /* { dg-options "-O2 -fwrapv" } */ | |
4 | |
5 struct S { int a : 1; } b, c; | |
6 signed char d, e, f; | |
7 | |
8 void | |
9 foo () | |
10 { | |
11 while (f) | |
12 { | |
13 signed char g = b.a; | |
14 if (g) | |
15 b.a = ~(1 + (d || c.a)); | |
16 if (b.a < g && b.a) | |
17 g = 0; | |
18 if (b.a > c.a) | |
19 b.a = g; | |
20 c.a = e; | |
21 } | |
22 } |