New testcase, check that the bc file correctly encodes varargs nonccc calls.
authorChris Lattner <sabre@nondot.org>
Fri, 26 May 2006 18:41:26 +0000 (18:41 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 26 May 2006 18:41:26 +0000 (18:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28500 91177308-0d34-0410-b5e6-96231b3b80d8

test/Assembler/2006-05-26-VarargsCallEncode.ll [new file with mode: 0644]

diff --git a/test/Assembler/2006-05-26-VarargsCallEncode.ll b/test/Assembler/2006-05-26-VarargsCallEncode.ll
new file mode 100644 (file)
index 0000000..c06de84
--- /dev/null
@@ -0,0 +1,8 @@
+; RUN: llvm-as < %s | llvm-dis | grep 'tail call csretcc'
+
+declare csretcc void %foo({}*, ...)
+
+void %bar() {
+  tail call csretcc void({}*, ...)* %foo({}* null, int 0)
+  ret void
+}