Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/Walloca-6.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
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 } |