xref: /llvm-project/llvm/test/Transforms/WholeProgramDevirt/export-unsuccessful-checked.ll (revision 0ecf7965929c4477c8b9821c68e0ad66b012d8fe)
1; RUN: opt -passes=wholeprogramdevirt -whole-program-visibility -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 ptr @vf1a, !type !0
8@vt1b = constant ptr @vf1b, !type !0
9@vt2a = constant ptr @vf2a, !type !1
10@vt2b = constant ptr @vf2b, !type !1
11@vt3a = constant ptr @vf3a, !type !2
12@vt3b = constant ptr @vf3b, !type !2
13@vt4a = constant ptr @vf4a, !type !3
14@vt4b = constant ptr @vf4b, !type !3
15
16declare void @vf1a(ptr)
17declare void @vf1b(ptr)
18declare void @vf2a(ptr)
19declare void @vf2b(ptr)
20declare void @vf3a(ptr)
21declare void @vf3b(ptr)
22declare void @vf4a(ptr)
23declare void @vf4b(ptr)
24
25!0 = !{i32 0, !"typeid1"}
26!1 = !{i32 0, !"typeid2"}
27!2 = !{i32 0, !"typeid3"}
28!3 = !{i32 0, !"typeid4"}
29