; RUN: llvm-as < %s | opt -prune-eh | llvm-dis | not grep 'ret int'

void %noreturn() {
	unwind
}

int %caller() {
	 ; noreturn never returns, so the ret is unreachable.
	call void %noreturn()
	ret int 17
}

int %caller2() {
	%T = call int %caller()
	ret int %T            ;; this is also unreachable!
}

Test the noreturn function optimization
Test the noreturn function optimization


git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@21586 91177308-0d34-0410-b5e6-96231b3b80d8
