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
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
Walloca-12.c
blob
d2d9413ab1e9fe6d6f840a11601ccda689e7c568
1
/* { dg-do compile } */
2
/* { dg-require-effective-target alloca } */
3
/* { dg-options "-Walloca-larger-than=128 -O2" } */
4
5
void
f
(
void
*);
6
7
void
g
(
unsigned int
n
)
8
{
9
if
(
n
==
7
)
10
n
=
11
;
11
f
(
__builtin_alloca
(
n
));
/* { dg-warning "may be too large" } */
12
}