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
6 ; Generate the static library
7 ; RUN: llvm-ar --format=gnu r %t.a %t2.o %t3.o
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
19 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
20 target triple = "x86_64-unknown-linux-gnu"