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

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

/* PR bootstrap/83396 */
/* { dg-do compile } */
/* { dg-options "-g" } */

int fn1 (void);
void fn2 (void *, const char *);
void fn3 (void);

void
fn4 (long long x)
{
  fn3 ();
}

void
fn5 (long long x)
{
  if (x)
    fn3();
}

void
fn6 (long long x)
{
  switch (fn1 ())
    {
    case 0:
      fn5 (x);
    case 2:
      fn2 (0, "");
      break;
    case 1:
    case 3:
      fn4(x);
    case 5:
      fn2 (0, "");
    }
}