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
/
20040223-1.c
blob
c295e4b09eaeda683e53f9acff83f01c4b425212
1
/* { dg-require-effective-target alloca } */
2
#include <string.h>
3
#include <stdio.h>
4
5
void
6
a
(
void
*
x
,
int
y
)
7
{
8
if
(
y
!=
1234
)
9
abort
();
10
}
11
12
int
13
main
()
14
{
15
a
(
strcpy
(
alloca
(
100
),
"abc"
),
1234
);
16
return
0
;
17
}