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  .globl  _start
12_start:
13  .functype _start () -> ()
14  i32.const 1
15  call  _Z3fooi
16  end_function
17
18.functype _Z3fooi (i32) -> ()
19