2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / vrp29.c
blob0a370f7d82e1b9f775f512c44699c766f3f3cb55
1 /* { dg-do run } */
2 /* { dg-options "-O2" } */
3 #include <limits.h>
5 extern void abort(void);
7 void decCompareOp (int result)
9 if (result != (int) (INT_MAX + 1U))
11 result = -result;
12 if (result != (int) (INT_MAX + 2U))
13 abort ();
17 int main()
19 decCompareOp (INT_MAX);
20 return 0;