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