OSDN Git Service

2008-06-07 Xinliang David Li <davidxl@google.com>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / 20020122-4.c
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 { target fpic } } */
4 /* { dg-options "-O2 -fpic" } */
5
6 void foo()
7 {
8   static int test;
9   int dummy;
10   asm volatile ("" : "=m"(test), "=r"(dummy) : "m"(test));
11 }