aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ARM/vararg_no_start.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/ARM/vararg_no_start.ll')
-rw-r--r--test/CodeGen/ARM/vararg_no_start.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/vararg_no_start.ll b/test/CodeGen/ARM/vararg_no_start.ll
new file mode 100644
index 0000000..f9c8c1b
--- /dev/null
+++ b/test/CodeGen/ARM/vararg_no_start.ll
@@ -0,0 +1,10 @@
+; RUN: llc -mtriple=arm-darwin < %s | FileCheck %s
+; RUN: llc -O0 -mtriple=arm-darwin < %s | FileCheck %s
+
+define void @foo(i8*, ...) {
+ ret void
+}
+; CHECK-LABEL: {{^_?}}foo:
+; CHECK-NOT: str
+; CHECK: {{bx lr|mov pc, lr}}
+declare void @llvm.va_start(i8*) nounwind