[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gcc.dg / Walloca-12.c
blob059c5f321292727a307de176f4289d2fa7538c5e
1 /* { dg-do compile } */
2 /* { dg-require-effective-target alloca } */
3 /* { dg-options "-Walloca-larger-than=128 -O2" } */
5 void f (void*);
7 void g (unsigned int n)
9 if (n == 7)
10 n = 11;
11 f (__builtin_alloca (n)); /* { dg-warning "unbounded use of 'alloca'" } */