2016-12-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / Walloca-6.c
blobb4d8d41b062bd9e284bfa2483e1c794045605f57
1 /* { dg-do compile } */
2 /* { dg-options "-Walloca-larger-than=256 -O2" } */
3 /* { dg-xfail-if "Currently broken but Andrew's work should fix this" { *-*-* } } */
5 void f (void*);
6 void g (__SIZE_TYPE__ n)
8 // No warning on this case. Range is easily determinable.
9 if (n > 0 && n < 256)
10 f (__builtin_alloca (n));