From c9ff9a16398e03be6f2e1b4bd4b291876d0bf5de Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 11 Mar 2002 17:25:50 +0000 Subject: [PATCH] New testcase for crashing bug llvm-svn: 1843 --- .../Transforms/LevelRaise/2002-03-11-Calls.ll | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/Regression/Transforms/LevelRaise/2002-03-11-Calls.ll diff --git a/test/Regression/Transforms/LevelRaise/2002-03-11-Calls.ll b/test/Regression/Transforms/LevelRaise/2002-03-11-Calls.ll new file mode 100644 index 00000000000..1232b1a6a44 --- /dev/null +++ b/test/Regression/Transforms/LevelRaise/2002-03-11-Calls.ll @@ -0,0 +1,15 @@ +; Fixed a problem where level raise would try to forward substitute a cast of a +; method pointer type into a call. In doing so, it would have to change the +; types of the arguments to the call, but broke doing so. +; +; RUN: as < %s | opt -raise + +implementation + + +void "test"(void (int*) *%Fn, long* %Arg) +begin + %Fn2 = cast void (int*) *%Fn to void(long*) * + call void %Fn2(long *%Arg) + ret void +end