Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/fold-compare-4.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 /* { dg-options "-fdump-tree-original" } */ | |
3 | |
4 int test1 (int a, int b) | |
5 { | |
6 return a - b == a; | |
7 } | |
8 int test2 (int a, int b) | |
9 { | |
10 return a + b == a; | |
11 } | |
12 int test3 (int a) | |
13 { | |
14 return a + 5 == a; | |
15 } | |
16 int test4 (int a) | |
17 { | |
18 return a - 5 == a; | |
19 } | |
20 | |
21 /* { dg-final { scan-tree-dump-times "b == 0" 2 "original" } } */ | |
22 /* { dg-final { scan-tree-dump-times "return 0" 2 "original" } } */ |