1 ; RUN: llvm-as -o %t.bc %s
2 ; RUN: rm -f %t.0.5.precodegen.bc %t.1.5.precodegen.bc %t.o %t.o1
3 ; RUN: env LD_PRELOAD=%llvmshlibdir/LLVMgold%shlibext %gold -plugin %llvmshlibdir/LLVMgold%shlibext -u foo -u bar -plugin-opt lto-partitions=2 -plugin-opt save-temps -m elf_x86_64 -o %t %t.bc
4 ; RUN: llvm-dis %t.0.5.precodegen.bc -o - | FileCheck --check-prefix=CHECK-BC0 %s
5 ; RUN: llvm-dis %t.1.5.precodegen.bc -o - | FileCheck --check-prefix=CHECK-BC1 %s
6 ; RUN: llvm-nm %t.o | FileCheck --check-prefix=CHECK0 %s
7 ; RUN: llvm-nm %t.o1 | FileCheck --check-prefix=CHECK1 %s
9 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
10 target triple = "x86_64-unknown-linux-gnu"
12 ; CHECK-BC0: define dso_local void @foo
13 ; CHECK-BC0: declare dso_local void @bar
22 ; CHECK-BC1: declare dso_local void @foo
23 ; CHECK-BC1: define dso_local void @bar