view gcc/testsuite/gcc.dg/winline-7.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { 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" } */