aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr107195-1.c
blob: a0c20dbd4b1e57bfd49e55fef9e0a73c4532f7a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do run }
// { dg-options "-O1 -fno-tree-ccp" }

int a, b;
int main() {
  int c = 0;
  if (a)
    c = 1;
  c = 1 & (a && c) && b;
  if (a) {
    b = c;
    __builtin_abort ();
  }
  return 0;
}