summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr26898-1.c
blob: 6194129292d1483fa9e6e33588ef4b6ecb05e99e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do link } */
/* { dg-options "-fstrict-overflow" } */

#include <limits.h>

extern void link_error(void);
int main()
{
  int i0, i1;
  if (!(i0 + 1 < i1 + 1 == i0 < i1))
    link_error ();
  if (!(i0 + INT_MIN < i1 - INT_MAX == i0 < i1 - -1))
    link_error ();
  return 0;
}