aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/asm.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/asm.c')
-rw-r--r--test/CodeGen/asm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/asm.c b/test/CodeGen/asm.c
index 0b6485ebff..4ef97bde2a 100644
--- a/test/CodeGen/asm.c
+++ b/test/CodeGen/asm.c
@@ -14,6 +14,13 @@ void t3(unsigned char *src, unsigned long long temp)
__asm__ volatile("" : "+m"(temp), "+r"(src));
}
+void t4()
+{
+ unsigned long long a;
+ struct reg { unsigned long long a, b; } b;
+
+ __asm__ volatile ("":: "m"(a), "m"(b));
+}