blob: 8583574266e1c137fd577da68b9961bc6f62107a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-einline" } */
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"} } */
|