| ; RUN: opt -mtriple=amdgcn-amd-amdhsa -module-summary %s -o %t.main.bc |
| ; RUN: opt -mtriple=amdgcn-amd-amdhsa -module-summary %p/Inputs/in-f1.ll -o %t.in.bc |
| ; RUN: llvm-lto -thinlto-action=run -force-import-all %t.main.bc %t.in.bc --thinlto-save-temps=%t.2. |
| ; RUN: llvm-dis %t.2.0.3.imported.bc -o - | FileCheck --check-prefix=MOD1 %s |
| ; RUN: llvm-dis %t.2.1.3.imported.bc -o - | FileCheck --check-prefix=MOD2 %s |
| define void @f0(ptr %p) #0 { |
| define weak hidden void @weak_common(ptr %v) #0 { |
| attributes #0 = { noinline } |
| ; MOD1: define weak hidden void @weak_common |
| ; MOD1: define available_externally void @f1 |
| ; MOD2: define weak hidden void @weak_common |