aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr110117-1.c
blob: fd9a9e3268e7f9134f6599d94bb3b366c39172f1 (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
/* { dg-do compile } */
/* { dg-options "-O1 -ftree-vrp -fno-tree-ccp -fno-tree-forwprop" } */
int a, b, d;
unsigned c;
int main() {
  char e = -10;
  int f = 1, g = 0;
  if (a) {
    char h = e;
  i:
    c = ~h - (-g & f || e);
    int j = b % c;
    g = j % 9;
    if (c) {
      if (d)
        e = 0;
      while (!g)
        ;
      int k = 0;
    l:
      if (k)
        goto i;
    }
  }
  if (e > -10) {
    if (g)
      f = 0;
    goto l;
  }
  return 0;
}