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
4 # CHECK: error: {{.*}}.o: undefined symbol: foo(int)
6 # RUN: not wasm-ld --no-demangle \
7 # RUN: -o %t.wasm %t.o 2>&1 | FileCheck -check-prefix=CHECK-NODEMANGLE %s
9 # CHECK-NODEMANGLE: error: {{.*}}.o: undefined symbol: _Z3fooi
11 .functype _Z3fooi (i32) -> ()
15 .functype _start () -> ()