When we originally wrote these tests we didn't have a stable and fleshed out assembly format. Now we do so we should prefer that over llvm ir for lld tests to avoid including more part of llvm than necessary in order to run the test. This change converts just 30 out of about 130 test files. More to come when I have some more time. Differential Revision: https://reviews.llvm.org/D80361
17 lines
546 B
ArmAsm
17 lines
546 B
ArmAsm
# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t1.o %s
|
|
# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %S/Inputs/import-attributes.s -o %t2.o
|
|
# RUN: not wasm-ld --export call_foo --allow-undefined -o %t.wasm %t1.o %t2.o 2>&1 | FileCheck %s
|
|
|
|
.globl _start
|
|
_start:
|
|
.functype _start () -> ()
|
|
call foo
|
|
end_function
|
|
|
|
.functype foo () -> ()
|
|
.import_module foo, bar
|
|
|
|
# CHECK: wasm-ld: error: import module mismatch for symbol: foo
|
|
# CHECK: >>> defined as bar in {{.*}}1.o
|
|
# CHECK: >>> defined as baz in {{.*}}2.o
|