1; RUN: rm -fr %T/thinlto 2; RUN: mkdir %T/thinlto 3; RUN: opt -thinlto-bc -o %T/thinlto/main.obj %s 4; RUN: opt -thinlto-bc -o %T/thinlto/foo.obj %S/Inputs/lto-dep.ll 5; RUN: lld-link /lldsavetemps /out:%T/thinlto/main.exe /entry:main /subsystem:console %T/thinlto/main.obj %T/thinlto/foo.obj 6; RUN: llvm-nm %T/thinlto/main.exe.lto.obj | FileCheck %s 7 8; CHECK-NOT: U foo 9 10target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128" 11target triple = "x86_64-pc-windows-msvc" 12 13define i32 @main() { 14 call void @foo() 15 ret i32 0 16} 17 18declare void @foo() 19