14fc25573SAndy Wingo# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s 24fc25573SAndy Wingo# 34fc25573SAndy Wingo# If any table is defined or declared besides the __indirect_function_table, 4*c3536b26SDan Gohman# the compilation unit should be compiled with -mattr=+call-indirect-overlong, 54fc25573SAndy Wingo# causing symbol table entries to be emitted for all tables. 64fc25573SAndy Wingo# RUN: not wasm-ld --no-entry %t.o -o %t.wasm 2>&1 | FileCheck -check-prefix=CHECK-ERR %s 74fc25573SAndy Wingo 84fc25573SAndy Wingo.global call_indirect 94fc25573SAndy Wingocall_indirect: 104fc25573SAndy Wingo .functype call_indirect () -> () 114fc25573SAndy Wingo i32.const 1 124fc25573SAndy Wingo call_indirect () -> () 134fc25573SAndy Wingo end_function 144fc25573SAndy Wingo 154fc25573SAndy Wingo.globl table 164fc25573SAndy Wingotable: 174fc25573SAndy Wingo .tabletype table, externref 184fc25573SAndy Wingo 194fc25573SAndy Wingo# CHECK-ERR: expected one symbol table entry for each of the 2 table(s) present, but got 1 symbol(s) instead. 20