summaryrefslogtreecommitdiff
path: root/test/Transforms/LevelRaise/2002-03-11-Calls.ll
blob: 3e8a58fc36081535e5712204faef509fbd3689af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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: llvm-upgrade < %s | llvm-as | 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