[OpenMP][Flang] Workaround omp_lib error (#123666)
[llvm-project.git] / lld / test / wasm / archive-local-sym.s
blob53e95b9bbb10567e1cd9cd20804f9804f258bfa6
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
9 #--- main.s
11 .functype foo () -> ()
13 .globl _start
14 _start:
15 .functype _start () -> ()
16 call foo
17 # CHECK: main.o: undefined symbol: foo
18 end_function
20 #--- foo.s
22 foo:
23 .functype foo () -> ()
24 end_function