Corrected date in changelog
[official-gcc.git] / gcc / testsuite / gcc.dg / pr23518.c
blob3c6bd2754e68e4b82c87c5282c234893b1afe1f9
1 /* PR tree-optimization/23518.
2 make_range used to transform a + 1 < 0 into a < -1 even when a is
3 signed and -fwrapv is given. Make sure that no longer happens. */
5 /* { dg-do run } */
6 /* { dg-options "-O2 -fwrapv" } */
8 #include <limits.h>
10 extern void abort (void);
11 extern void exit (int);
13 int
14 main (void)
16 int a = INT_MAX;
17 if ((a < 0) || (a + 1 < 0))
18 exit (0);
20 abort ();