gcc/gcc/testsuite/gcc.dg/pr44964.c

22 lines
270 B
C

/* { dg-do compile } */
/* { dg-options "-fkeep-inline-functions -O" } */
static inline __attribute__ ((const))
void baz (int i)
{
}
static __attribute__ ((always_inline))
inline __attribute__ ((flatten))
void bar (void)
{
baz (0);
}
void
foo (void)
{
bar ();
}