summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/winline-5.c
blob: ad1fc4100bbd0b4b172973c8668d3c01a660cfef (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
26
27
28
29
/* { dg-do compile } */
/* { dg-options "-Winline -O2 --param inline-unit-growth=0 --param large-unit-insns=0" } */

void big (void);
inline int q(void) /* { dg-warning "inline-unit-growth" } */
{
	big();
	big();
	big();
	big();
	big();
	big();
	big();
	big();
	big();
	big();
}
inline int q1(void)
{
	big();
	big();
	big();
}
int t (void)
{
 /* We allow one inlining over limit.  */
	q1();
	return q ();		 /* { dg-warning "called from here" } */
}