rt_gccstream/gcc/testsuite/gcc.dg/winline-6.c

22 lines
372 B
C

/* { dg-do compile } */
/* { dg-options "-Winline -O2 --param large-function-growth=0 --param large-function-insns=1" } */
void big (void);
inline int q(void) /* { dg-warning "large-function-growth" } */
{
big();
big();
big();
big();
big();
big();
big();
big();
big();
big();
}
inline int t (void)
{
return q () + 1; /* { dg-warning "called from here" } */
}