2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / 20020122-4.c
blob653dfcb75ddd8535f72a52340cd26ce90f2eb077
1 /* Alpha -msmall-data didn't transform (mem (symbol_ref)) to
2 (mem (lo_sum pic (symbol_ref))) within an asm at the right time. */
3 /* { dg-do compile } */
4 /* { dg-options "-O2 -fpic" } */
5 /* { dg-warning "not supported" "PIC unsupported" { target cris-*-elf* cris-*-aout* mmix-*-* } 0 } */
7 void foo()
9 static int test;
10 int dummy;
11 asm volatile ("" : "=m"(test), "=r"(dummy) : "m"(test));