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
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr89045.c
blob
2b5730d4888b64515a16cb718d37b6db2a878c2c
1
/* PR c/89045 */
2
/* { dg-do compile } */
3
/* { dg-require-effective-target alloca } */
4
/* { dg-options "" } */
5
6
int
7
foo
(
int
x
)
8
{
9
int
v
[(
int
){
x
}];
10
v
[
0
] =
0
;
11
int
bar
(
int
p
[(
int
){
x
}])
12
{
13
return
p
[
0
];
14
}
15
return
bar
(
v
);
16
}