xref: /llvm-project/llvm/test/Bitcode/thinlto-summary-local-5.0.ll (revision e45cf479231fc144b4e1eb8b3e3bd2f578b6907d)
1; Bitcode compatibility test for dso_local flag in thin-lto summaries.
2; Checks that older bitcode summaries without the dso_local op are still
3; properly parsed and don't set GlobalValues as dso_local.
4
5; RUN: llvm-dis < %s.bc | FileCheck %s
6; RUN: llvm-bcanalyzer -dump %s.bc | FileCheck %s --check-prefix=BCAN
7
8define void @foo() {
9;CHECK-DAG:define void @foo()
10      ret void
11}
12
13@bar = global i32 0
14;CHECK-DAG: @bar = global i32 0
15
16@baz = alias i32, i32* @bar
17;CHECK-DAG: @baz = alias i32, ptr @bar
18
19;BCAN: <SOURCE_FILENAME
20;BCAN-NEXT: <GLOBALVAR {{.*}} op7=0/>
21;BCAN-NEXT: <FUNCTION {{.*}} op16=0/>
22;BCAN-NEXT: <ALIAS {{.*}} op9=0/>
23