comparison gcc/testsuite/gcc.dg/fold-compare-2.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-fre1" } */
3
4 extern void abort (void);
5
6 int a;
7
8 int
9 main(void)
10 {
11 if (a * 1000 < 0)
12 abort ();
13 if (a * -43 > 0)
14 abort ();
15 return 0;
16 }
17
18 /* { dg-final { scan-tree-dump-times "Removing basic block" 2 "fre1" } } */
19