1; RUN: opt -thinlto-bc -thin-link-bitcode-file=%t2 -o %t %s
2; RUN: llvm-dis -o - %t | FileCheck %s
3; RUN: llvm-bcanalyzer -dump %t | FileCheck --check-prefix=BCA %s
4; When not splitting the module, the thin link bitcode file should simply be a
5; copy of the regular module.
6; RUN: diff %t %t2
7
8; BCA-NOT: <GLOBALVAL_SUMMARY_BLOCK
9
10; CHECK: @llvm.global_ctors = appending global
11@llvm.global_ctors = appending global [1 x { i32, void ()* }] [{ i32, void ()* } { i32 65535, void ()* @f }]
12
13; CHECK: @g = internal global i8 42, !type !0
14@g = internal global i8 42, !type !0
15
16declare void @sink(i8*)
17
18; CHECK: define internal void @f()
19define internal void @f() {
20  call void @sink(i8* @g)
21  ret void
22}
23
24$h = comdat any
25; CHECK: define void @h() comdat
26define void @h() comdat {
27  ret void
28}
29
30!0 = !{i32 0, !"typeid"}
31