1 /* { dg-do compile } */
2 /* { dg-require-effective-target int32plus } */
3
4 struct x {
5 int selector;
6 };
7
f()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 }
13