28 lines · plain
1; Copied from lld/test/ELF/lto/thinlto-thin-archive-collision.ll2 3; RUN: rm -fr %t && mkdir %t && cd %t4; RUN: mkdir thinlto-archives thinlto-archives/a thinlto-archives/b5; RUN: opt -thinlto-bc -o thinlto-archives/main.o %s6; RUN: opt -thinlto-bc -o thinlto-archives/a/thin.o %S/Inputs/thin1.ll7; RUN: opt -thinlto-bc -o thinlto-archives/b/thin.o %S/Inputs/thin2.ll8; RUN: llvm-ar qcT thinlto-archives/thin.a thinlto-archives/a/thin.o thinlto-archives/b/thin.o9; RUN: wasm-ld thinlto-archives/main.o thinlto-archives/thin.a -o thinlto-archives/main.exe --save-temps10; RUN: FileCheck %s < thinlto-archives/main.exe.resolution.txt11 12; CHECK: thinlto-archives/main.o13; CHECK: thinlto-archives/thin.a(thin.o at {{[1-9][0-9]+}})14; CHECK-NEXT: -r=thinlto-archives/thin.a(thin.o at {{[1-9][0-9]+}}),foo,p15; CHECK: thinlto-archives/thin.a(thin.o at {{[1-9][0-9]+}})16; CHECK-NEXT: -r=thinlto-archives/thin.a(thin.o at {{[1-9][0-9]+}}),blah,p17 18target triple = "wasm32-unknown-unknown"19 20declare i32 @blah(i32 %meh)21declare i32 @foo(i32 %goo)22 23define i32 @_start() {24 call i32 @foo(i32 0)25 call i32 @blah(i32 0)26 ret i32 027}28