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
/
addr-space-5.c
blob
4f73f95aa3f25ac56edea812e2484d41c7bb874d
1
/* { dg-do compile } */
2
/* { dg-options "-O" } */
3
/* { dg-final { scan-assembler "gs:" } } */
4
5
#define uintptr_t __SIZE_TYPE__
6
7
struct
S
{
int
a
,
b
,
c
; };
8
9
extern
struct
S s
;
10
11
int
ct_state3
(
void
)
12
{
13
int
r
;
14
r
= *((
int
__seg_gs
*) (
uintptr_t
) &
s
.
c
);
15
return
r
;
16
}