File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 7878; RUN: opt -passes=function-import -summary-file=main.bc.thinlto.bc main.bc -o main-after-import.bc
7979; RUN: llvm-dis -o - main-after-import.bc | FileCheck %s --check-prefix=MAIN-IMPORT
8080
81+ ; Tests that dso_local attribute is applied on a global var from its summary.
8182MAIN-IMPORT: @read_write_global_vars = external dso_local global [1 x ptr ]
8283
8384; Run in-process ThinLTO and tests that
@@ -128,10 +129,11 @@ MAIN-IMPORT: @read_write_global_vars = external dso_local global [1 x ptr]
128129
129130; RUN: llvm-dis in-process.2.2.internalize.bc -o - | FileCheck %s --check-prefix=INTERNALIZE
130131
131- ; IMPORT-DAG: @read_write_global_vars = external dso_local global [1 x ptr]
132132; IMPORT-DAG: define available_externally void @small_func
133133; IMPORT-DAG: define available_externally hidden void @small_indirect_callee
134134; IMPORT-DAG: declare void @large_func
135+ ; Tests that dso_local attribute is applied on a global var from its summary.
136+ ; IMPORT-DAG: @read_write_global_vars = external dso_local global [1 x ptr]
135137; IMPORT-NOT: large_indirect_callee
136138; IMPORT-NOT: large_indirect_callee_alias
137139; IMPORT-NOT: large_indirect_bar
You can’t perform that action at this time.
0 commit comments