Sign in
llvm
/
llvm-archive
/
48649d2c83b557841c9e5c978d9ab5af13cb52e5
/
.
/
llvm-gcc-4.0
/
gcc
/
testsuite
/
gcc.dg
/
asm-1.c
blob: 1f509422e9745756848653a2db7df0d46ea5b7ef [
file
] [
log
] [
blame
]
/* { dg-do compile { target i?86-*-* } } */
struct
x
{
int
selector
;
};
void
f
()
{
struct
x
*
addr
;
__asm__
(
"mov %%gs,%0"
:
"=r"
((
unsigned
short
)
addr
->
selector
));
/* { dg-error "lvalue" "casts make rvalues" } */
}