aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr116405.c
blob: 9223f15a298749c7e94f8c5dafcde9430ee61d6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* PR rtl-optimization/116405 */
/* { dg-do run } */
/* { dg-options "-O2 -fno-ssa-phiopt -fno-tree-dce" } */ 

int printf(const char *, ...);
int a, b = 2, c = 1;
unsigned d, e;
int main() {
 L:
  a = -1 / c;
  d = ~(b && (c && ~e) & b);
  printf("0\n");
  c = 0;
  if (d != -1)
    goto L;
  return 0;
}