blob: 1f509422e9745756848653a2db7df0d46ea5b7ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
/* { 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" } */
}
|