Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/Walloca-6.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 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" { *-*-* } } */ | |
5 | |
6 void f (void*); | |
7 void g (__SIZE_TYPE__ n) | |
8 { | |
9 // No warning on this case. Range is easily determinable. | |
10 if (n > 0 && n < 256) | |
11 f (__builtin_alloca (n)); | |
12 } |