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-4.c
blob
f7c89e631be32c094145a75802fee5bb8da0981e
1
/* { dg-skip-if "requires alloca" { ! alloca } { "-O0" } { "" } } */
2
void
3
bar
(
int
N
)
4
{
5
void
foo
(
int
a
[
2
][
N
++]) {}
6
int
a
[
2
][
N
];
7
foo
(
a
);
8
int
b
[
2
][
N
];
9
foo
(
b
);
10
if
(
sizeof
(
a
) !=
sizeof
(
int
) *
2
*
1
)
11
abort
();
12
if
(
sizeof
(
b
) !=
sizeof
(
int
) *
2
*
2
)
13
abort
();
14
if
(
N
!=
3
)
15
abort
();
16
}
17
18
int
19
main
(
void
)
20
{
21
bar
(
1
);
22
exit
(
0
);
23
}