1; REQUIRES: x86 2; RUN: rm -fr %T/thinlto 3; RUN: mkdir %T/thinlto 4; RUN: opt -thinlto-bc -o %T/thinlto/main.obj %s 5; RUN: opt -thinlto-bc -o %T/thinlto/foo.obj %S/Inputs/lto-dep.ll 6; RUN: lld-link /lldsavetemps /out:%T/thinlto/main.exe /entry:main /subsystem:console %T/thinlto/main.obj %T/thinlto/foo.obj 7; RUN: llvm-nm %T/thinlto/main.exe1.lto.obj | FileCheck %s 8 9; This command will store full path to foo.obj in the archive %t.lib 10; Check that /lldsavetemps is still usable in such case. 11; RUN: lld-link /lib %T/thinlto/foo.obj /out:%t.lib 12; RUN: lld-link /lldsavetemps /out:%t.exe /entry:main /subsystem:console %T/thinlto/main.obj %t.lib 13 14; CHECK-NOT: U foo 15 16target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" 17target triple = "x86_64-pc-windows-msvc" 18 19define i32 @main() { 20 call void @foo() 21 ret i32 0 22} 23 24declare void @foo() 25