blob: c472f8167a0db3c511edaca5372346e064900d76 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-einline" } */
/* { dg-require-effective-target alloca } */
void bar (char *);
int i;
static void
foo (void)
{
char *p = __builtin_alloca (i);
bar (p);
}
int
baz (void)
{
foo (); /* foo() should not be inlined here because it calls alloca */
return 6;
}
/* { dg-final { scan-tree-dump-times "Inlining foo into baz" 0 "einline"} } */