1; RUN: opt -module-summary %s -o %t1.bc 2; RUN: opt -module-summary %p/Inputs/emit_imports.ll -o %t2.bc 3; RUN: llvm-lto -thinlto-action=thinlink -o %t.index.bc %t1.bc %t2.bc 4; RUN: llvm-lto -thinlto-action=emitimports -thinlto-index %t.index.bc %t1.bc %t2.bc 5 6; The imports file for this module contains the bitcode file for 7; Inputs/emit_imports.ll 8; RUN: cat %t1.bc.imports | count 1 9; RUN: cat %t1.bc.imports | FileCheck %s --check-prefix=IMPORTS1 10; IMPORTS1: emit_imports.ll.tmp2.bc 11 12; The imports file for Input/emit_imports.ll is empty as it does not import anything. 13; RUN: cat %t2.bc.imports | count 0 14 15declare void @g(...) 16 17define void @f() { 18entry: 19 call void (...) @g() 20 ret void 21} 22