blob: b31af6c52624ca9a34d8925c9a749e6528792033 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/* Check that early inliner works out that a is empty of parameter 0. */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-einline -fno-partial-inlining" } */
void t(void);
int a (int b)
{
if (!b)
{
t();
t();
t();
t();
t();
t();
t();
}
}
void
m()
{
a(1);
a(0);
}
/* { dg-final { scan-tree-dump-times "Inlining a into m" 1 "einline" } } */
/* { dg-final { cleanup-tree-dump "einline" } } */
|