1; Copied from lld/test/ELF/lto/thinlto-thin-archive-collision.ll 2 3; RUN: rm -fr %t && mkdir %t && cd %t 4; RUN: mkdir thinlto-archives thinlto-archives/a thinlto-archives/b 5; RUN: opt -thinlto-bc -o thinlto-archives/main.o %s 6; RUN: opt -thinlto-bc -o thinlto-archives/a/thin.o %S/Inputs/thin1.ll 7; RUN: opt -thinlto-bc -o thinlto-archives/b/thin.o %S/Inputs/thin2.ll 8; RUN: llvm-ar qcT thinlto-archives/thin.a thinlto-archives/a/thin.o thinlto-archives/b/thin.o 9; RUN: wasm-ld thinlto-archives/main.o thinlto-archives/thin.a -o thinlto-archives/main.exe --save-temps 10; RUN: FileCheck %s < thinlto-archives/main.exe.resolution.txt 11 12; CHECK: thinlto-archives/main.o 13; 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,p 15; 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,p 17 18target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-n32:64-S128" 19target triple = "wasm32-unknown-unknown" 20 21declare i32 @blah(i32 %meh) 22declare i32 @foo(i32 %goo) 23 24define i32 @_start() { 25 call i32 @foo(i32 0) 26 call i32 @blah(i32 0) 27 ret i32 0 28} 29