Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pic-1.c
blobbc11de90b41115cff210328fef0118b810dc3dab
1 /* PR target/8340 */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target ilp32 } */
4 /* { dg-require-effective-target fpic } */
5 /* { dg-options "-fPIC" } */
7 int foo ()
9 static int a;
11 __asm__ __volatile__ ( /* { dg-error "PIC register" } */
12 "xorl %%ebx, %%ebx\n"
13 "movl %%ebx, %0\n"
14 : "=m" (a)
16 : "%ebx"
19 return a;