summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/fold-compare-2.c
blob: 6674c4dad6e32b9add31076854c8b18214f70eb4 (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" 2 "vrp1" } } */
/* { dg-final { cleanup-tree-dump "vrp\[1-2\]" } } */