aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/CFrontend/2005-09-24-AsmUserPrefix.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CFrontend/2005-09-24-AsmUserPrefix.c b/test/CFrontend/2005-09-24-AsmUserPrefix.c
new file mode 100644
index 0000000000..06600fa84a
--- /dev/null
+++ b/test/CFrontend/2005-09-24-AsmUserPrefix.c
@@ -0,0 +1,9 @@
+// RUN: %llvmgcc %s -S -o - | gccas &&
+// RUN: %llvmgcc %s -S -o - | gccas | llc &&
+// RUN: %llvmgcc %s -S -o - | gccas | llc | not grep _foo2
+
+void foo() __asm__("foo2");
+
+void bar() {
+ foo();
+}