diff options
author | Chris Lattner <sabre@nondot.org> | 2002-03-11 17:25:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-03-11 17:25:50 +0000 |
commit | 4a24792a477ac1f3b5602d34093ec2a46febbda7 (patch) | |
tree | b88a03385e5aa34d1fec72e8992497983886730d /test | |
parent | c1e20acc68aab02bef240fd5f13cef9762900d7a (diff) | |
download | external_llvm-4a24792a477ac1f3b5602d34093ec2a46febbda7.zip external_llvm-4a24792a477ac1f3b5602d34093ec2a46febbda7.tar.gz external_llvm-4a24792a477ac1f3b5602d34093ec2a46febbda7.tar.bz2 |
New testcase for crashing bug
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1843 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Transforms/LevelRaise/2002-03-11-Calls.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Transforms/LevelRaise/2002-03-11-Calls.ll b/test/Transforms/LevelRaise/2002-03-11-Calls.ll new file mode 100644 index 0000000..1232b1a --- /dev/null +++ b/test/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 |