view gcc/testsuite/c-c++-common/pr43942.c @ 19:2b5abeee2509 default tip

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* PR debug/43942 */
/* { dg-do compile } */
/* { dg-options "-O2 -fcompare-debug" } */

extern int f1 (int);

int
f2 (int x)
{
  extern int v;
  return f1 (x);
}

void
f3 (void)
{
  f2 (0);
}

static inline int
f4 (int x)
{
  extern int w;
  if (w)
    return f1 (x);
  return 0;
}

void
f5 (void)
{
  f4 (0);
}