aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/tree-ssa/vrp29.c
blob: 0a370f7d82e1b9f775f512c44699c766f3f3cb55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* { dg-do run } */
/* { dg-options "-O2" } */
#include <limits.h>

extern void abort(void);

void decCompareOp (int result)
{
  if (result != (int) (INT_MAX + 1U))
    {
      result = -result;
      if (result != (int) (INT_MAX + 2U))
        abort ();
    }
}

int main()
{
  decCompareOp (INT_MAX);
  return 0;
}