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
/
20000227-1.c
blob
395a02c50c6e8df061337242efbc4247f955f5a5
1
static const unsigned char
f
[] =
"\0
\377
"
;
2
static const unsigned char
g
[] =
"\0ΓΏ"
;
3
4
int
main
(
void
)
5
{
6
if
(
sizeof
f
!=
3
||
sizeof
g
!=
3
)
7
abort
();
8
if
(
f
[
0
] !=
g
[
0
])
9
abort
();
10
if
(
f
[
1
] !=
g
[
1
])
11
abort
();
12
if
(
f
[
2
] !=
g
[
2
])
13
abort
();
14
return
0
;
15
}