blob: 3132444a9f36aa027017a489797990b4a4f6a32b [file] [log] [blame]
Eric Christophercee313d2019-04-17 04:52:47 +00001; RUN: opt -wholeprogramdevirt -wholeprogramdevirt-summary-action=export -wholeprogramdevirt-read-summary=%S/Inputs/export.yaml -wholeprogramdevirt-write-summary=%t -o /dev/null %s
2; RUN: FileCheck %s < %t
3
4; CHECK: TypeTests: [ 15427464259790519041, 17525413373118030901 ]
5; CHECK-NEXT: TypeTestAssumeVCalls:
6
7@vt1a = constant void (i8*)* @vf1a, !type !0
8@vt1b = constant void (i8*)* @vf1b, !type !0
9@vt2a = constant void (i8*)* @vf2a, !type !1
10@vt2b = constant void (i8*)* @vf2b, !type !1
11@vt3a = constant void (i8*)* @vf3a, !type !2
12@vt3b = constant void (i8*)* @vf3b, !type !2
13@vt4a = constant void (i8*)* @vf4a, !type !3
14@vt4b = constant void (i8*)* @vf4b, !type !3
15
16declare void @vf1a(i8*)
17declare void @vf1b(i8*)
18declare void @vf2a(i8*)
19declare void @vf2b(i8*)
20declare void @vf3a(i8*)
21declare void @vf3b(i8*)
22declare void @vf4a(i8*)
23declare void @vf4b(i8*)
24
25!0 = !{i32 0, !"typeid1"}
26!1 = !{i32 0, !"typeid2"}
27!2 = !{i32 0, !"typeid3"}
28!3 = !{i32 0, !"typeid4"}