PR lto/84212 - -Wno-* does not disable warnings from -flto link stage
[official-gcc.git] / gcc / testsuite / g++.dg / Walloca1.C
blobb860a4286c2ad1804c001a2b1741921e0b028bba
1 /* PR middle-end/79809 */
2 /* { dg-do compile } */
3 /* { dg-options "-Walloca-larger-than=4207115063 -Wvla-larger-than=1233877270 -O2" } */
4 /* { dg-require-effective-target alloca } */
6 int a;
7 char *b = static_cast<char *>(__builtin_alloca (a)); // { dg-warning "argument to .alloca. may be too large|unbounded use of" }