summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/fold-compare-2.c
blob: bcdb7ad3fcbe58eee222797fa652972fb3b38557 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-vrp" } */

extern void abort (void);

int a;

int
main(void)
{
  if (a * 1000 < 0)
    abort ();
  if (a * -43 > 0)
    abort ();
  return 0;
}

/* { dg-final { scan-tree-dump-times "Removing basic block" 1 "vrp1" } } */
/* { dg-final { cleanup-tree-dump "vrp\[1-2\]" } } */