From e812d1133b593d627449952ef6bdab7757904ecf Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 26 May 2006 18:41:26 +0000 Subject: [PATCH] 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 --- test/Assembler/2006-05-26-VarargsCallEncode.ll | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/Assembler/2006-05-26-VarargsCallEncode.ll diff --git a/test/Assembler/2006-05-26-VarargsCallEncode.ll b/test/Assembler/2006-05-26-VarargsCallEncode.ll new file mode 100644 index 00000000000..c06de84386d --- /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 +}