PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / pr20922-3.c
blob349e60ca42b62746cc0b54018b00e2748b9311a5
1 /* { dg-do compile } */
2 /* { dg-options "-ffast-math -fno-wrapv -fstrict-overflow -fdump-tree-gimple" } */
3 int f(int i)
5 return (i - 2) <= i;
8 int g(int i)
10 return (i + 2) >= i;
13 int h(int i)
15 return (i + (-2)) <= i;
18 int x(double i)
20 return (i - 2.0) <= i;
23 int y(double i)
25 return (i + 2.0) >= i;
28 int z(double i)
30 return (i + (-2.0)) <= i;
32 /* { dg-final { scan-tree-dump-times " = 1" 6 "gimple" } } */