aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr68067-1.c
blob: f8ad3ca0168d8e2fa78de58efc30f252b2938798 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do run } */
/* { dg-require-effective-target int32plus } */

int main()
{
  int a = -1;
  static int b = -2147483647 - 1;
  static int c = 0;
  int t = a - (b - c);
  if (t != 2147483647)
    __builtin_abort();
  return 0;
}