1; Generate summary sections 2; RUN: opt -module-summary %s -o %t.o 3; RUN: opt -module-summary %p/Inputs/thinlto_archive1.ll -o %t2.o 4; RUN: opt -module-summary %p/Inputs/thinlto_archive2.ll -o %t3.o 5 6; Generate the static library 7; RUN: llvm-ar --format=gnu r %t.a %t2.o %t3.o 8 9; Test importing from archive library via gold, using jobs=1 to ensure 10; output messages are not interleaved. 11; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \ 12; RUN: -m elf_x86_64 \ 13; RUN: --plugin-opt=thinlto \ 14; RUN: --plugin-opt=-print-imports \ 15; RUN: --plugin-opt=jobs=1 \ 16; RUN: -shared %t.o %t.a -o %t4 2>&1 | FileCheck %s 17; RUN: llvm-nm %t4 | FileCheck %s --check-prefix=NM 18 19target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 20target triple = "x86_64-unknown-linux-gnu" 21 22; CHECK-DAG: Import g 23declare void @g(...) 24; CHECK-DAG: Import h 25declare void @h(...) 26 27; NM: T f 28define void @f() { 29entry: 30 call void (...) @g() 31 call void (...) @h() 32 ret void 33} 34