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
PR sanitizer/65280
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr45472.c
blob
6cbc392a50b601de70f5fb33952f26c77366e2df
1
/* { dg-do compile { target powerpc*-*-* ia64-*-* i?86-*-* 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
}