20 lines · plain
1# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s2#3# If any table is defined or declared besides the __indirect_function_table,4# the compilation unit should be compiled with -mattr=+call-indirect-overlong,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 %s7 8.global call_indirect9call_indirect:10 .functype call_indirect () -> ()11 i32.const 112 call_indirect () -> ()13 end_function14 15.globl table16table:17 .tabletype table, externref18 19# CHECK-ERR: expected one symbol table entry for each of the 2 table(s) present, but got 1 symbol(s) instead.20