2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / i386-pic-1.c
blob4c548bf1cd60bb420ca741cf3ecc90cbb1ed803c
1 /* PR target/8340 */
2 /* { dg-do compile { target i?86-*-* } } */
3 /* { dg-options "-fPIC" } */
5 int foo ()
7 static int a;
9 __asm__ __volatile__ ( /* { dg-error "PIC register" } */
10 "xorl %%ebx, %%ebx\n"
11 "movl %%ebx, %0\n"
12 : "=m" (a)
14 : "%ebx"
17 return a;