summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-05-26 18:41:26 +0000
committerChris Lattner <sabre@nondot.org>2006-05-26 18:41:26 +0000
commite812d1133b593d627449952ef6bdab7757904ecf (patch)
tree7219d7d9ac3926091d590df4554edf76095d916e /test
parent052fb5110fd9b461cbb140364068268df8465bf4 (diff)
downloadllvm-e812d1133b593d627449952ef6bdab7757904ecf.tar.gz
llvm-e812d1133b593d627449952ef6bdab7757904ecf.tar.bz2
llvm-e812d1133b593d627449952ef6bdab7757904ecf.tar.xz
New testcase, check that the bc file correctly encodes varargs nonccc calls.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28500 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Assembler/2006-05-26-VarargsCallEncode.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Assembler/2006-05-26-VarargsCallEncode.ll b/test/Assembler/2006-05-26-VarargsCallEncode.ll
new file mode 100644
index 0000000000..c06de84386
--- /dev/null
+++ b/test/Assembler/2006-05-26-VarargsCallEncode.ll
@@ -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
+}