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
[committed] [RISC-V] Skip zbs-ext-2.c for -Oz as well
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
pr22061-4.c
blob
14b11cead9709231ec2728aa2ba4e1a437f84b0f
1
/* { dg-skip-if "requires alloca" { ! alloca } { "-O0" } { "" } } */
2
void
abort
(
void
);
3
void
exit
(
int
);
4
5
void
6
bar
(
int
N
)
7
{
8
void
foo
(
int
a
[
2
][
N
++]) {}
9
int
a
[
2
][
N
];
10
foo
(
a
);
11
int
b
[
2
][
N
];
12
foo
(
b
);
13
if
(
sizeof
(
a
) !=
sizeof
(
int
) *
2
*
1
)
14
abort
();
15
if
(
sizeof
(
b
) !=
sizeof
(
int
) *
2
*
2
)
16
abort
();
17
if
(
N
!=
3
)
18
abort
();
19
}
20
21
int
22
main
(
void
)
23
{
24
bar
(
1
);
25
exit
(
0
);
26
}