From 2da5975c479f3b9822e87f9083a41cb034c04ce2 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 8 Oct 2002 21:57:49 +0000 Subject: [PATCH] New testcase for bug that messes up the CWriter llvm-svn: 4082 --- .../Transforms/LevelRaise/2002-10-08-VarArgCall.ll | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/Regression/Transforms/LevelRaise/2002-10-08-VarArgCall.ll diff --git a/test/Regression/Transforms/LevelRaise/2002-10-08-VarArgCall.ll b/test/Regression/Transforms/LevelRaise/2002-10-08-VarArgCall.ll new file mode 100644 index 00000000000..651d595be93 --- /dev/null +++ b/test/Regression/Transforms/LevelRaise/2002-10-08-VarArgCall.ll @@ -0,0 +1,12 @@ +; RUN: if as < %s | opt -raise | dis | grep call | grep \.\.\. +; RUN: then exit 1 +; RUN: else exit 0 +; RUN: fi + +implementation + +void %test(sbyte* %P) { + %Q = cast sbyte* %P to void (...)* + call void (...)* %Q(sbyte* %P) + ret void +}