25 lines · plain
1## Test that local symbols in archive files are ignored.2# RUN: split-file %s %t3# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t/foo.o %t/foo.s4# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t/main.o %t/main.s5# RUN: rm -f %t/libfoo.a6# RUN: llvm-ar rcs %t/libfoo.a %t/foo.o7# RUN: not wasm-ld %t/libfoo.a %t/main.o -o out.wasm 2>&1 | FileCheck %s8 9#--- main.s10 11.functype foo () -> ()12 13.globl _start14_start:15 .functype _start () -> ()16 call foo17# CHECK: main.o: undefined symbol: foo18 end_function19 20#--- foo.s21 22foo:23 .functype foo () -> ()24 end_function25