annotate gcc/testsuite/gcc.dg/pr81227.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Copy of gcc.c-torture/compile/pr80443.c */
kono
parents:
diff changeset
2 /* { dg-do compile } */
kono
parents:
diff changeset
3 /* { dg-options "-O2 -fwrapv" } */
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 struct S { int a : 1; } b, c;
kono
parents:
diff changeset
6 signed char d, e, f;
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 void
kono
parents:
diff changeset
9 foo ()
kono
parents:
diff changeset
10 {
kono
parents:
diff changeset
11 while (f)
kono
parents:
diff changeset
12 {
kono
parents:
diff changeset
13 signed char g = b.a;
kono
parents:
diff changeset
14 if (g)
kono
parents:
diff changeset
15 b.a = ~(1 + (d || c.a));
kono
parents:
diff changeset
16 if (b.a < g && b.a)
kono
parents:
diff changeset
17 g = 0;
kono
parents:
diff changeset
18 if (b.a > c.a)
kono
parents:
diff changeset
19 b.a = g;
kono
parents:
diff changeset
20 c.a = e;
kono
parents:
diff changeset
21 }
kono
parents:
diff changeset
22 }