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
/
980506-3.c
blob
a943e9ad62c2a35f0d475e34254821644d37b68b
1
unsigned char
lookup_table
[
257
];
2
3
static int
4
build_lookup
(
pattern
)
5
unsigned char
*
pattern
;
6
{
7
int
m
;
8
9
m
=
strlen
(
pattern
) -
1
;
10
11
memset
(
lookup_table
, ++
m
,
257
);
12
return
m
;
13
}
14
15
int
main
(
argc
,
argv
)
16
int
argc
;
17
char
**
argv
;
18
{
19
if
(
build_lookup
(
"bind"
) !=
4
)
20
abort
();
21
else
22
exit
(
0
);
23
}
24