gcc/testsuite/gcc.dg/winline-7.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-Winline -O2 -fgnu89-inline" } */ |
| 3 | |
| 4 | extern void *alloca (__SIZE_TYPE__); |
| 5 | |
| 6 | void big (void); |
| 7 | inline void *q (void) /* { dg-warning "(function not inlinable|alloca)" } */ |
| 8 | { |
| 9 | return alloca (10); |
| 10 | } |
| 11 | inline void *t (void) |
| 12 | { |
| 13 | return q (); /* { dg-message "called from here" } */ |
| 14 | } |
| 15 | |
| 16 | /* { dg-prune-output "-Wreturn-local-addr" } */ |