18 lines · plain
1# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t1.o %s2# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %S/Inputs/import-attributes.s -o %t2.o3# RUN: not wasm-ld --export call_foo --allow-undefined -o %t.wasm %t1.o %t2.o 2>&1 | FileCheck %s4 5.functype foo () -> ()6 7 .globl _start8_start:9 .functype _start () -> ()10 call foo11 end_function12 13.import_module foo, bar14 15# CHECK: wasm-ld: error: import module mismatch for symbol: foo16# CHECK: >>> defined as bar in {{.*}}1.o17# CHECK: >>> defined as baz in {{.*}}2.o18