;;; TOOL: wat2wasm
;;; ARGS: --enable-reference-types

(module
  (table $foo 1 anyfunc)
  (table $bar 1 anyfunc)

  (func (result i32) i32.const 0)
  (func (result i32) i32.const 1)

  (func (result i32)
    i32.const 0
    call_indirect (type 0) $foo)

  (func (result i32)
    i32.const 0
    call_indirect (type 0) $bar)
)
