; Test to make sure that lazily loaded debug location scope metadata is ; handled properly. Note that we need to have the DILexicalScope !34 ; referenced from multiple function's debug locs for this to be in the ; lazily loaded module level metadata block. ; RUN: opt -module-hash -module-summary %s -o %t1.bc ; RUN: opt -module-hash -module-summary %p/Inputs/pr35472.ll -o %t2.bc ; RUN: llvm-lto -thinlto-action=run %t1.bc %t2.bc -exported-symbol=_Z5Alphav ; RUN: llvm-nm %t1.bc.thinlto.o | FileCheck %s -check-prefix=ThinLTOa ; RUN: llvm-nm %t2.bc.thinlto.o | FileCheck %s -check-prefix=ThinLTOb ; RUN: llvm-bcanalyzer -dump %t1.bc | FileCheck %s --implicit-check-not=' ; CHECK: ; CHECK: ; CHECK: ; CHECK: