2018-05-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / Walloca-6.c
blob16b5d6f729d714ac27c51b1fde01341be6c3a89a
1 /* { dg-do compile } */
2 /* { dg-require-effective-target alloca } */
3 /* { dg-options "-Walloca-larger-than=256 -O2" } */
4 /* { dg-xfail-if "Currently broken but Andrew's work should fix this" { *-*-* } } */
6 void f (void*);
7 void g (__SIZE_TYPE__ n)
9 // No warning on this case. Range is easily determinable.
10 if (n > 0 && n < 256)
11 f (__builtin_alloca (n));