summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/asm.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/asm.c')
-rw-r--r--clang/test/CodeGen/asm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/CodeGen/asm.c b/clang/test/CodeGen/asm.c
new file mode 100644
index 00000000000..d6fbf774081
--- /dev/null
+++ b/clang/test/CodeGen/asm.c
@@ -0,0 +1,5 @@
+// RUN: clang %s -arch=i386 -verify -fsyntax-only
+void f(int len)
+{
+ __asm__ volatile("" :"=&r"(len), "+&r"(len));
+}
OpenPOWER on IntegriCloud