]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/Walloca-8.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / Walloca-8.c
CommitLineData
adc577c5 1/* { dg-do compile } */
90e02692 2/* { dg-require-effective-target alloca } */
adc577c5
AH
3/* { dg-options "-Walloca-larger-than=2000 -O2" } */
4
5void *p;
6void
7foo (__SIZE_TYPE__ len)
8{
9 if (len < 2000 / sizeof (void *))
10 p = __builtin_alloca (len * sizeof (void *));
11 else
12 p = __builtin_malloc (len * sizeof (void *));
13}