1; REQUIRES: x86 2; RUN: rm -fr %T/thinlto-archives 3; RUN: mkdir %T/thinlto-archives %T/thinlto-archives/a %T/thinlto-archives/b 4; RUN: opt -thinlto-bc -o %T/thinlto-archives/main.obj %s 5; RUN: opt -thinlto-bc -o %T/thinlto-archives/a/bar.obj %S/Inputs/lto-dep.ll 6; RUN: opt -thinlto-bc -o %T/thinlto-archives/b/bar.obj %S/Inputs/bar.ll 7; RUN: llvm-ar crs %T/thinlto-archives/a.lib %T/thinlto-archives/a/bar.obj 8; RUN: llvm-ar crs %T/thinlto-archives/b.lib %T/thinlto-archives/b/bar.obj 9; RUN: lld-link /out:%T/thinlto-archives/main.exe -entry:main \ 10; RUN: -subsystem:console %T/thinlto-archives/main.obj \ 11; RUN: %T/thinlto-archives/a.lib %T/thinlto-archives/b.lib 12 13target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128" 14target triple = "x86_64-pc-windows-msvc" 15 16declare void @bar() 17declare void @foo() 18 19define i32 @main() { 20 call void @foo() 21 call void @bar() 22 ret i32 0 23} 24