; RUN: opt -module-summary %s -o %t1.bc ; RUN: opt -module-summary %p/Inputs/distributed_indexes.ll -o %t2.bc ; RUN: llvm-lto -thinlto-action=thinlink -o %t.index.bc %t1.bc %t2.bc ; RUN: llvm-lto -thinlto-action=distributedindexes -thinlto-index %t.index.bc %t1.bc %t2.bc ; RUN: llvm-bcanalyzer -dump %t1.bc.thinlto.bc | FileCheck %s --check-prefix=BACKEND1 ; RUN: llvm-bcanalyzer -dump %t2.bc.thinlto.bc | FileCheck %s --check-prefix=BACKEND2 ; The backend index for this module contains summaries from itself and ; Inputs/distributed_indexes.ll, as it imports from the latter. ; We should import @g and alias @analias. While we don't import the aliasee ; directly (and therefore don't have a third COMBINED record from module ; id 1), we will have a VALUE_GUID for it (hence the 4 VALUE_GUID entries). ; BACKEND1: ; BACKEND2-DAG: ; BACKEND2-DAG: ; BACKEND2-NEXT: