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
/
graphite
/
pr71575-1.c
blob
4a8623e3c04c23065542f886f9bd40fca2b8f937
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -floop-nest-optimize" } */
3
4
void
w
(
int
x
,
double
*
y
)
5
{
6
int
i
,
j
;
7
double
a
;
8
double
c
[
32
];
9
10
for
(
i
=
0
;
i
<
x
;
i
++) {
11
for
(
j
=
0
;
j
<
x
-
i
;
j
++) {
12
c
[
j
] =
y
[
i
];
13
}
14
y
[
i
] =
a
;
15
a
+=
c
[
0
] +
y
[
i
];
16
}
17
}
18
19
void
v
(
int
x
,
double
*
y
)
20
{
21
w
(
x
,
y
);
22
}