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
6 ; CHECK0: define void @foo()
7 ; CHECK1: declare void @foo()
12 ; CHECK0: declare void @bar()
13 ; CHECK0-NOT: personality
14 ; CHECK1: define void @bar() personality i8* bitcast (void ()* @foo to i8*)
15 define void @bar() personality i8* bitcast (void ()* @foo to i8*)