forked from OSchip/llvm-project
New testcase that the raiseallocations pass should be able to handle.
llvm-svn: 10304
This commit is contained in:
parent
8427bffb9a
commit
ffb2d08c4a
|
@ -0,0 +1,10 @@
|
|||
; This situation can occur due to the funcresolve pass.
|
||||
;
|
||||
; RUN: llvm-as < %s | opt -raiseallocs | llvm-dis | not grep call
|
||||
|
||||
declare void %free(sbyte*)
|
||||
|
||||
void %test(int *%P) {
|
||||
call void(int*)* cast (void(sbyte*)* %free to void(int*)*)(int* %P)
|
||||
ret void
|
||||
}
|
Loading…
Reference in New Issue