PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / fold-compare-4.c
blobb7ccc303f5590554a0e704cedd652fa97f5b68e3
1 /* { dg-do compile } */
2 /* { dg-options "-fdump-tree-original" } */
4 int test1 (int a, int b)
6 return a - b == a;
8 int test2 (int a, int b)
10 return a + b == a;
12 int test3 (int a)
14 return a + 5 == a;
16 int test4 (int a)
18 return a - 5 == a;
21 /* { dg-final { scan-tree-dump-times "b == 0" 2 "original" } } */
22 /* { dg-final { scan-tree-dump-times "return 0" 2 "original" } } */