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 c/64856
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
asm-1.c
blob
fecac780f6958955553f42046f63b5f9f64112e3
1
/* { dg-do compile } */
2
/* { dg-require-effective-target int32plus } */
3
4
struct
x
{
5
int
selector
;
6
};
7
8
void
f
()
9
{
10
struct
x
*
addr
;
11
__asm__
(
"mov %%gs,%0"
:
"=r"
((
unsigned short
)
addr
->
selector
));
/* { dg-error "lvalue" "casts make rvalues" } */
12
}