aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr109689.c
blob: 5d2ce7ed63d5e57471ef76869a3eab58d3c0915e (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
32
33
34
/* { dg-do compile } */
/* { dg-additional-options "-ftree-vectorize" } */

int a, b, c, d, e;
int main() {
  char f;
  while (a) {
    int g, h = 3;
    if (b)
    i:
      if (d)
        goto j;
  k:
    if (a) {
    j:
      if (!g)
        goto k;
      if (e) {
        while (e)
          e = f;
        h = 0;
        goto i;
      }
      if (!h)
        for (; g < 1; g++)
          ;
      g = ~((~c & h & c) ^ ~g);
      if (!g)
        for (; a < 1; a++)
          f++;
    }
  }
  return 0;
}