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
/
pr22061-3.c
blob
a805948182f318cfbfe5f7cd6cb93f1df77b5414
1
void
2
bar
(
int
N
)
3
{
4
int
foo
(
char
a
[
2
][++
N
]) {
N
+=
4
;
return sizeof
(
a
[
0
]); }
5
if
(
foo
(
0
) !=
2
)
6
abort
();
7
if
(
foo
(
0
) !=
7
)
8
abort
();
9
if
(
N
!=
11
)
10
abort
();
11
}
12
13
int
14
main
()
15
{
16
bar
(
1
);
17
exit
(
0
);
18
}