view gcc/testsuite/gcc.dg/torture/pr86945.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents
children
line wrap: on
line source

/* { 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;
}