14595a915SSean Fertile; Bitcode compatibility test for dso_local flag in thin-lto summaries.
24595a915SSean Fertile; Checks that older bitcode summaries without the dso_local op are still
34595a915SSean Fertile; properly parsed and don't set GlobalValues as dso_local.
44595a915SSean Fertile
5*4e8b99a5SJoel E. Denny; RUN: llvm-dis < %s.bc | FileCheck %s
6*4e8b99a5SJoel E. Denny; RUN: llvm-bcanalyzer -dump %s.bc | FileCheck %s --check-prefix=BCAN
74595a915SSean Fertile
84595a915SSean Fertiledefine void @foo() {
94595a915SSean Fertile;CHECK-DAG:define void @foo()
104595a915SSean Fertile      ret void
114595a915SSean Fertile}
124595a915SSean Fertile
134595a915SSean Fertile@bar = global i32 0
144595a915SSean Fertile;CHECK-DAG: @bar = global i32 0
154595a915SSean Fertile
164595a915SSean Fertile@baz = alias i32, i32* @bar
17*4e8b99a5SJoel E. Denny;CHECK-DAG: @baz = alias i32, i32* @bar
184595a915SSean Fertile
194595a915SSean Fertile;BCAN: <SOURCE_FILENAME
204595a915SSean Fertile;BCAN-NEXT: <GLOBALVAR {{.*}} op7=0/>
214595a915SSean Fertile;BCAN-NEXT: <FUNCTION {{.*}} op16=0/>
224595a915SSean Fertile;BCAN-NEXT: <ALIAS {{.*}} op9=0/>
23