aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/vrp118.c
blob: 8c4cc367dbf7ad21a4b24a19d5c9f59b4ff5e56e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */

void eliminate_me();
void f(int x,int y){
    if (y <= 0)
      __builtin_unreachable();
    x += y;
    if (x == -__INT_MAX__ - 1)
      eliminate_me ();
}

/* { dg-final { scan-tree-dump-not "eliminate_me" "optimized" } } */