libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / Walloca-14.c
blob554587c051b31c8c6715451731397b401be79c0d
1 /* PR tree-optimization/80109 */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target alloca } */
4 /* { dg-skip-if "small address space" { "pdp11-*-*" } } */
5 /* { dg-options "-O2 -Walloca-larger-than=126812070" { target ptr32plus } } */
6 /* { dg-options "-O2 -Walloca-larger-than=12070" { target { ! ptr32plus } } } */
7 /* { dg-additional-options "-fpermissive" } */
9 void
10 g (int *p)
12 extern void f (void *);
14 void *q = __builtin_alloca (p); /* { dg-warning "passing argument 1" } */
15 /* { dg-warning "unbounded use of 'alloca'" "unbounded" { target *-*-* } .-1 } */
16 f (q);