20 lines · plain
1# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s2# RUN: not wasm-ld -o %t.wasm %t.o 2>&1 | FileCheck %s3 4# CHECK: error: {{.*}}.o: undefined symbol: foo(int)5 6# RUN: not wasm-ld --no-demangle \7# RUN: -o %t.wasm %t.o 2>&1 | FileCheck -check-prefix=CHECK-NODEMANGLE %s8 9# CHECK-NODEMANGLE: error: {{.*}}.o: undefined symbol: _Z3fooi10 11.functype _Z3fooi (i32) -> ()12 13 .globl _start14_start:15 .functype _start () -> ()16 i32.const 117 call _Z3fooi18 end_function19 20