;;; TOOL: wat2wasm
;;; ARGS: -r
(module 
  (type (func (param i32)(param i32)(result i32)))
  (func $add (param i32)(param i32)(result i32)
    get_local 0
    get_local 1
    i32.add
    return
  )
  (table 1 anyfunc)
  (elem (i32.const 0) $add)
  (func $run
    i32.const 4444
    i32.const 5555
    i32.const 0
    ;;call_indirect (type 0) ;; fails
    call_indirect (param i32)(param i32)(result i32)
    drop
  )
  (export "run" (func $run))
)
