1; Based on lld/test/ELF/lto/thin-archivecollision.ll 2 3; RUN: opt -module-summary %s -o %t.o 4; RUN: mkdir -p %t1 %t2 5; RUN: opt -module-summary %p/Inputs/thin1.ll -o %t1/t.coll.o 6; RUN: opt -module-summary %p/Inputs/thin2.ll -o %t2/t.coll.o 7 8; RUN: rm -f %t.a 9; RUN: llvm-ar rcs %t.a %t1/t.coll.o %t2/t.coll.o 10; RUN: wasm-ld %t.o %t.a -o %t 11; RUN: obj2yaml %t | FileCheck %s 12 13; Check we handle this case correctly even in presence of --whole-archive. 14; RUN: wasm-ld %t.o --whole-archive %t.a -o %t 15; RUN: obj2yaml %t | FileCheck %s 16 17; CHECK: Name: _start 18; CHECK: Name: foo 19; CHECK: Name: blah 20 21target triple = "wasm32-unknown-unknown" 22 23define i32 @_start() #0 { 24entry: 25 %call = call i32 @foo(i32 23) 26 %call1 = call i32 @blah(i32 37) 27 ret i32 0 28} 29 30declare i32 @foo(i32) #1 31declare i32 @blah(i32) #1 32 33attributes #0 = { noinline optnone } 34