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
Fix broken MinGW build of gcc.c
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
vla-22.c
blob
8025bae8f6f34b7cacbcd184b582aed737f0b621
1
/* { dg-do compile } */
2
/* { dg-options "-O2" } */
3
/* { dg-require-effective-target alloca } */
4
5
extern
void
bar
(
int
*);
6
7
static
inline
__attribute__
((
always_inline
))
8
int
9
foo
(
int
i
)
10
{
11
struct
S
{
12
int
ar
[
1
][
i
];
13
}
s
;
14
15
s
.
ar
[
0
][
0
] =
0
;
16
bar
(&
s
.
ar
[
0
][
0
]);
17
}
18
19
void
20
baz
(
int
i
)
21
{
22
foo
(
i
+
2
);
23
}