1; Test that "personality" attributes are correctly updated when cloning modules.
2; RUN: llvm-split -o %t %s
3; RUN: llvm-dis -o - %t0 | FileCheck --check-prefix=CHECK0 %s
4; RUN: llvm-dis -o - %t1 | FileCheck --check-prefix=CHECK1 %s
5
6; CHECK0: define void @foo()
7; CHECK1: declare void @foo()
8define void @foo() {
9  ret void
10}
11
12; CHECK0: declare void @bar()
13; CHECK0-NOT: personality
14; CHECK1: define void @bar() personality i8* bitcast (void ()* @foo to i8*)
15define void @bar() personality i8* bitcast (void ()* @foo to i8*)
16{
17  ret void
18}
19