repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
Walloca-6.c
blob
ebe08aec838ba8cdc9cbd32961ffb8ffeeb2332c
1
/* { dg-do compile } */
2
/* { dg-require-effective-target alloca } */
3
/* { dg-options "-Walloca-larger-than=256 -O2" } */
4
5
void
f
(
void
*);
6
void
g
(
__SIZE_TYPE__ n
)
7
{
8
// No warning on this case. Range is easily determinable.
9
if
(
n
>
0
&&
n
<
256
)
10
f
(
__builtin_alloca
(
n
));
11
}