aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/winline-3.c
blob: 7043a276025f50e9f40ac40e222614f49084eb9c (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 "-Winline -O2 --param max-inline-insns-single-O2=1 --param inline-min-speedup-O2=100 -fgnu89-inline" } */

void big (void);
inline int q(void) /* { dg-warning "max-inline-insns-single" } */
{
	big();
	big();
	big();
	big();
	big();
	big();
	big();
	big();
	big();
	big();
}
inline int t (void)
{
	return q ();		 /* { dg-message "called from here" } */
}