aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr86945.c
blob: 4b722f5f685cfbb1c115888f47565402caeaeda9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do run } */

void __attribute__((noinline,noipa))
foo(int id)
{
  switch (id)
    {
    case (-__INT_MAX__ - 1)...-1:
      __builtin_abort ();
    default:;
    }
}

int main()
{
  foo(1);
  return 0;
}