Test that prune-eh doesn't make deductions based on bodies of functions with weak linkage.
; RUN: llvm-as < %s | opt -prune-eh | llvm-dis | not grep nounwind

define weak void @f() {
entry:
        ret void
}

define void @g() {
entry:
	call void @f()
	ret void
}