brintos

brintos / llvm-project-archived public Read only

0
0
Text · 872 B · c3d133e Raw
34 lines · plain
1; Based on lld/test/ELF/lto/thin-archivecollision.ll2 3; RUN: opt -module-summary %s -o %t.o4; RUN: mkdir -p %t1 %t25; RUN: opt -module-summary %p/Inputs/thin1.ll -o %t1/t.coll.o6; RUN: opt -module-summary %p/Inputs/thin2.ll -o %t2/t.coll.o7 8; RUN: rm -f %t.a9; RUN: llvm-ar rcs %t.a %t1/t.coll.o %t2/t.coll.o10; RUN: wasm-ld %t.o %t.a -o %t11; RUN: obj2yaml %t | FileCheck %s12 13; Check we handle this case correctly even in presence of --whole-archive.14; RUN: wasm-ld %t.o --whole-archive %t.a -o %t15; RUN: obj2yaml %t | FileCheck %s16 17; CHECK: Name:            _start18; CHECK: Name:            foo19; CHECK: Name:            blah20 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 028}29 30declare i32 @foo(i32) #131declare i32 @blah(i32) #132 33attributes #0 = { noinline optnone }34