summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/winline-7.c
blob: 239d748926d8dbe59107c50603f83e18bcec1b49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile } */
/* { dg-options "-Winline -O2 -fgnu89-inline" } */
/* { dg-require-effective-target alloca } */

extern void *alloca (__SIZE_TYPE__);

void big (void);
inline void *q (void) /* { dg-warning "(function not inlinable|alloca)" } */
{
	return alloca (10);
}
inline void *t (void)
{
	return q ();		 /* { dg-message "called from here" } */
}

/* { dg-prune-output "-Wreturn-local-addr" } */