2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr26898-1.c
blob6194129292d1483fa9e6e33588ef4b6ecb05e99e
1 /* { dg-do link } */
2 /* { dg-options "-fstrict-overflow" } */
4 #include <limits.h>
6 extern void link_error(void);
7 int main()
9 int i0, i1;
10 if (!(i0 + 1 < i1 + 1 == i0 < i1))
11 link_error ();
12 if (!(i0 + INT_MIN < i1 - INT_MAX == i0 < i1 - -1))
13 link_error ();
14 return 0;