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 +}