Warn pointer to signed integer cast for ilp32
[official-gcc.git] / gcc / testsuite / gcc.dg / pr20922-3.c
blob84ecafef968eea6b98d16db5dc24033cdda0898a
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" } } */
33 /* { dg-final { cleanup-tree-dump "gimple" } } */