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