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
2014-07-29 Ed Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr45472.c
blob
573e83d700c02ab2a346f88f94beab2b06d14100
1
/* { dg-do compile { target powerpc*-*-* ia64-*-* x86_64-*-* } } */
2
/* { dg-options "-O -fschedule-insns2 -fselective-scheduling2" } */
3
4
struct
S
5
{
6
volatile
long
vl
;
7
int
i
;
8
};
9
struct
S s1
,
s2
;
10
11
void
12
foo
(
int
j
,
int
c
)
13
{
14
int
i
;
15
for
(
i
=
0
;
i
<=
j
;
i
++)
16
{
17
if
(
c
)
18
s2
.
vl
+=
s1
.
vl
;
19
s1
=
s2
;
20
}
21
}