xref: /llvm-project/llvm/test/Transforms/ThinLTOBitcodeWriter/cfi-functions-canonical-jump-tables.ll (revision 0e497d1554a915ace538dc08f03f1661aab8bdf7)
1; RUN: opt -thinlto-bc -thinlto-split-lto-unit -o %t %s
2; RUN: llvm-modextract -b -n 1 -o - %t | llvm-dis | FileCheck %s
3
4; Check that cfi.functions metadata has the expected contents.
5
6; CHECK: !"f1", i8 1
7; CHECK: !"f2", i8 1
8; CHECK: !"f3", i8 0
9
10declare !type !1 void @f1()
11
12define void @f2() !type !1 {
13  ret void
14}
15
16define void @f3() "cfi-canonical-jump-table" !type !1 {
17  ret void
18}
19
20!llvm.module.flags = !{!0}
21
22!0 = !{i32 4, !"CFI Canonical Jump Tables", i32 0}
23!1 = !{i32 0, !"typeid1"}
24