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