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; CHECK-NOT: U foo
10
11target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
12target triple = "x86_64-pc-windows-msvc"
13
14define i32 @main() {
15  call void @foo()
16  ret i32 0
17}
18
19declare void @foo()
20