1# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s 2# RUN: not wasm-ld -o %t.wasm %t.o 2>&1 | FileCheck %s 3 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 %s 8 9# CHECK-NODEMANGLE: error: {{.*}}.o: undefined symbol: _Z3fooi 10 11.functype _Z3fooi (i32) -> () 12 13 .globl _start 14_start: 15 .functype _start () -> () 16 i32.const 1 17 call _Z3fooi 18 end_function 19 20