llvm.org GIT mirror llvm / release_22 test / Transforms / DeadArgElim / 2007-10-18-VarargsReturn.ll
release_22

Tree @release_22 (Download .tar.gz)

2007-10-18-VarargsReturn.ll @release_22raw · history · blame

; RUN: llvm-as < %s | opt -deadargelim | llvm-dis | not grep {ret i32 0}
; PR1735

define internal i32 @test(i32 %A, ...) { 
	ret i32 %A
}

define i32 @foo() {
	%A = call i32(i32, ...)* @test(i32 1)
	ret i32 %A
}