Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / asm-1.c
blobfecac780f6958955553f42046f63b5f9f64112e3
1 /* { dg-do compile } */
2 /* { dg-require-effective-target int32plus } */
4 struct x {
5 int selector;
6 };
8 void f()
10 struct x* addr;
11 __asm__("mov %%gs,%0":"=r" ((unsigned short)addr->selector)); /* { dg-error "lvalue" "casts make rvalues" } */