aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/pr61045.c
blob: 1808cdc259ff8020ec4de97a717227cb993c8e1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do run } */
/* { dg-options "-fstrict-overflow" } */

int main ()
{
  int a = 0;
  int b = __INT_MAX__;
  int t = (a - 2) > (b - 1);
  if (t != 0)
    __builtin_abort();
  return 0;
}