1 /* PR tree-optimization/80109 */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target alloca } */
4 /* { dg-options "-O2 -Walloca-larger-than=126812070" } */
5 
6 void
g(int * p)7 g (int *p)
8 {
9   extern void f (void *);
10 
11   void *q = __builtin_alloca (p); /* { dg-warning "passing argument 1" } */
12   /* { dg-warning "unbounded use of 'alloca'" "unbounded" { target *-*-* } .-1 } */
13   f (q);
14 }
15