New testcase distilled from SPEC MCF benchmark
[oota-llvm.git] / test / Transforms / LevelRaise / 2002-03-11-Calls.ll
1 ; Fixed a problem where level raise would try to forward substitute a cast of a
2 ; method pointer type into a call.  In doing so, it would have to change the
3 ; types of the arguments to the call, but broke doing so.
4 ;
5 ; RUN: as < %s | opt -raise
6
7 implementation
8
9
10 void "test"(void (int*) *%Fn, long* %Arg)
11 begin
12         %Fn2 = cast void (int*) *%Fn to void(long*) *
13         call void %Fn2(long *%Arg)
14         ret void
15 end