1 # RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s
3 # If any table is defined or declared besides the __indirect_function_table,
4 # the compilation unit should be compiled with -mattr=+reference-types,
5 # causing symbol table entries to be emitted for all tables.
6 # RUN: not wasm-ld --no-entry %t.o -o %t.wasm 2>&1 | FileCheck -check-prefix=CHECK-ERR %s
10 .functype call_indirect () -> ()
12 call_indirect
() -> ()
17 .tabletype table, externref
19 # CHECK-ERR: expected one symbol table entry for each of the 2 table(s) present, but got 1 symbol(s) instead.