aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/FunctionResolve/2002-11-07-RetMismatch.ll
blob: 134d7eb321aa507a121096939858a5e4b044c911 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; RUN: if as < %s | opt -funcresolve -globaldce | dis | grep declare
; RUN: then exit 1
; RUN: else exit 0
; RUN: fi

declare void %qsortg(sbyte*, int, int)

void %test() {
	call void %qsortg(sbyte* null, int 0, int 0)
	ret void
}

int %qsortg(sbyte* %base, int %n, int %size) {
	ret int %n
}