2 ;; Test --lto-obj-path= for regular LTO.
4 ; RUN: rm -rf %t && split-file %s %t && cd %t
5 ; RUN: opt 1.ll -o 1.bc
6 ; RUN: opt 2.ll -o 2.bc
9 ; RUN: ld.lld --lto-obj-path=4.o -shared 1.bc 2.bc -o 3
10 ; RUN: llvm-nm 3 | FileCheck %s --check-prefix=NM
11 ; RUN: llvm-objdump -d 4.o | FileCheck %s
12 ; RUN: ls 3* 4* | count 2
15 ; RUN: ld.lld --thinlto-index-only=3.txt --lto-obj-path=4.o -shared 1.bc 2.bc -o 3
16 ; RUN: llvm-objdump -d 4.o | FileCheck %s
22 ; CHECK: file format elf64-x86-64
27 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
28 target triple = "x86_64-unknown-linux-gnu"
39 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
40 target triple = "x86_64-unknown-linux-gnu"