1 /* PR middle-end/100425 - missing -Walloca-larger-than with -O0
3 { dg-options "-O0 -Wall -Walloca-larger-than=128" }
4 { dg-require-effective-target alloca } */
6 typedef __SIZE_TYPE__
size_t;
12 void warn_alloca_too_large (void)
16 sink (alloca (129)); // { dg-warning "\\\[-Walloca-larger-than" }
17 sink (alloca (128 + 2)); // { dg-warning "\\\[-Walloca-larger-than" }
18 sink (alloca (1024)); // { dg-warning "\\\[-Walloca-larger-than" }