view gcc/testsuite/gcc.c-torture/compile/20180915-1.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
line wrap: on
line source

/* PR middle-end/86864 */
/* Testcase by Serge Belyshev <belyshev@depni.sinp.msu.ru> */

long a;
void f ();
void g (int b, int c, int d)
{
  switch (b)
    {
    case 42:
    case 29:
    case 48:
    case 40:
    case 32:
      c = 2;
      break;
    case 0:
      c = 1;
      break;
    default:
      __builtin_unreachable ();
    }
  if (d || a)
    f ();
  if (c == 1)
    f ();
}