kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

call_indirect.wat (246B)


      1 (module
      2   (type $ret_i32 (func (result i32)))
      3   (func $target (type $ret_i32)
      4     i32.const 42)
      5   (table 1 funcref)
      6   (elem (i32.const 0) func $target)
      7   (func (export "test_main") (result i32)
      8     i32.const 0
      9     call_indirect (type $ret_i32)))