1; RUN: llvm-as %s -o %t1.o 2; RUN: llvm-as %p/Inputs/start-lib1.ll -o %t2.o 3; RUN: llvm-as %p/Inputs/start-lib2.ll -o %t3.o 4 5; RUN: llvm-lto2 run -r %t1.o,_start,px -r %t2.o,foo,px -r %t3.o,bar,px -r %t2.o,bar,lx -o %t3 %t1.o %t2.o %t3.o 6; RUN: llvm-readelf -S %t3.0 | FileCheck %s --implicit-check-not=.llvmbc 7 8; RUN: llvm-lto2 run -r %t1.o,_start,px -r %t2.o,foo,px -r %t3.o,bar,px -r %t2.o,bar,lx -lto-embed-bitcode=false -o %t3 %t1.o %t2.o %t3.o 9; RUN: llvm-readelf -S %t3.0 | FileCheck %s --implicit-check-not=.llvmbc 10 11; RUN: llvm-lto2 run -r %t1.o,_start,px -r %t2.o,foo,px -r %t3.o,bar,px -r %t2.o,bar,lx -lto-embed-bitcode -o %t3 %t1.o %t2.o %t3.o 12; RUN: llvm-readelf -S %t3.0 | FileCheck %s --check-prefix=CHECK-ELF 13; RUN: llvm-objcopy -O binary -j .llvmbc %t3.0 %t-embedded.bc 14; RUN: llvm-dis %t-embedded.bc -o - | FileCheck %s --check-prefix=CHECK-LL 15 16; CHECK-ELF: .text 17; CHECK-ELF: .llvmbc 18 19; CHECK-LL: @_start 20; CHECK-LL: @foo 21; CHECK-LL: @bar 22 23target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 24target triple = "x86_64-unknown-linux-gnu" 25 26define void @_start() { 27 ret void 28} 29