1; Generate summary sections and test gold handling. 2; RUN: opt -module-summary %s -o %t.o 3; RUN: opt -module-summary %p/Inputs/thinlto.ll -o %t2.o 4 5; Ensure gold generates imports files if requested for distributed backends. 6; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \ 7; RUN: --plugin-opt=thinlto \ 8; RUN: --plugin-opt=thinlto-index-only \ 9; RUN: --plugin-opt=thinlto-emit-imports-files \ 10; RUN: -shared %t.o %t2.o -o %t3 11 12; The imports file for this module contains the bitcode file for 13; Inputs/thinlto.ll 14; RUN: cat %t.o.imports | count 1 15; RUN: cat %t.o.imports | FileCheck %s --check-prefix=IMPORTS1 16; IMPORTS1: test/tools/gold/X86/Output/thinlto_emit_imports.ll.tmp2.o 17 18; The imports file for Input/thinlto.ll is empty as it does not import anything. 19; RUN: cat %t2.o.imports | count 0 20 21declare void @g(...) 22 23define void @f() { 24entry: 25 call void (...) @g() 26 ret void 27} 28