summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/winline-1.c
blob: ac2ae82427a9e61d554c6192bf2fde3414a23a55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-options "-Winline -O2" } */

void q(void);
inline int t(void)
{
	int ret;
	q();
	ret = t();  /* We define sane semantics for inline keyword on recursive
		       functions, so do not warn here.  */
	q();
	return ret;
}