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
PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
941202-1.c
blob
b97ae0e34a736be0b7ac099605dd3e6513536fab
1
/* { dg-skip-if "requires alloca" { ! alloca } { "-O0" } { "" } } */
2
g
(
x
,
y
)
3
{
4
if
(
x
!=
3
)
5
abort
();
6
}
7
8
static
inline
9
f
(
int
i
)
10
{
11
int
*
tmp
;
12
13
tmp
= (
int
*)
alloca
(
sizeof
(
i
));
14
*
tmp
=
i
;
15
g
(*
tmp
,
0
);
16
}
17
18
main
()
19
{
20
f
(
3
);
21
exit
(
0
);
22
};