aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr104700-2.c
blob: e0759cca70f12946b888a548195c0bd0558f6b18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* { dg-do compile } */
/* { dg-options "-O2 -fno-tree-ccp -fno-tree-dce -fno-tree-vrp" } */

int a, b;
int main() {
  int c = 2, d, e = 0;
  if (a)
    e = 2;
  int f, g = -(1L | (e && f && f & e));
  if (g)
  L:
    g = c;
  c = 0;
  d = e * g;
  if (d)
    goto L;
  while (e) {
    int i = (a && b) * i;
  }
  return 0;
}