aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/20020122-4.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/20020122-4.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.dg/20020122-4.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/20020122-4.c b/gcc-4.9/gcc/testsuite/gcc.dg/20020122-4.c
new file mode 100644
index 000000000..50aef1950
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.dg/20020122-4.c
@@ -0,0 +1,11 @@
+/* Alpha -msmall-data didn't transform (mem (symbol_ref)) to
+ (mem (lo_sum pic (symbol_ref))) within an asm at the right time. */
+/* { dg-do compile { target fpic } } */
+/* { dg-options "-O2 -fpic" } */
+
+void foo()
+{
+ static int test;
+ int dummy;
+ asm volatile ("" : "=m"(test), "=r"(dummy) : "m"(test));
+}