1; RUN: opt -thinlto-bc -o %t %s
2; RUN: llvm-dis -o - %t | FileCheck %s
3; RUN: llvm-bcanalyzer -dump %t | FileCheck --check-prefix=BCA %s
4
5; BCA-NOT: <GLOBALVAL_SUMMARY_BLOCK
6
7; CHECK: @llvm.global_ctors = appending global
8@llvm.global_ctors = appending global [1 x { i32, void ()* }] [{ i32, void ()* } { i32 65535, void ()* @f }]
9
10; CHECK: @g = internal global i8 42, !type !0
11@g = internal global i8 42, !type !0
12
13declare void @sink(i8*)
14
15; CHECK: define internal void @f()
16define internal void @f() {
17  call void @sink(i8* @g)
18  ret void
19}
20
21!0 = !{i32 0, !"typeid"}
22