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
2016-12-21 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
i386
/
pr65103-1.c
blob
4e3a7a3a2bc6345364967af142699a64af2932f7
1
/* { dg-do compile { target ia32 } } */
2
/* { dg-require-effective-target pie } */
3
/* { dg-options "-O2 -fPIE" } */
4
/* { dg-final { scan-assembler-not "GOTOFF," } } */
5
6
typedef
struct
S
7
{
8
int
a
;
9
int
sum
;
10
int
delta
;
11
}
S
;
12
13
S gs
;
14
int
global_opt
(
int
max
)
15
{
16
while
(
gs
.
sum
<
max
)
17
gs
.
sum
+=
gs
.
delta
;
18
return
gs
.
a
;
19
}