summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/2003-11-13-ConstExprCastCall.ll
blob: d257286d8591434881312b025c050345ba8cf6f5 (plain)
1
2
3
4
5
6
7
8
9
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep call | notcast

declare void %free(sbyte*)

void %test(int* %X) {
	call int (...)* cast (void (sbyte*)* %free to int (...)*)(int * %X)
	ret void
}