1 ## Test that local symbols in archive files are ignored.
2 # RUN: split-file %s %t
3 # RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t/foo.o %t/foo.s
4 # RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t/main.o %t/main.s
5 # RUN: rm -f %t/libfoo.a
6 # RUN: llvm-ar rcs %t/libfoo.a %t/foo.o
7 # RUN: not wasm-ld %t/libfoo.a %t/main.o -o out.wasm 2>&1 | FileCheck %s
11 .functype foo () -> ()
15 .functype _start () -> ()
17 # CHECK: main.o: undefined symbol: foo
23 .functype foo () -> ()