;; @xform import "" "a" (anyref_borrowed) (module (import "" "a" (func $a (param i32))) (func (export "foo") i32.const 0 call $a) (func $alloc (export "__anyref_table_alloc") (result i32) i32.const 0) (func $dealloc (export "__anyref_table_dealloc") (param i32)) ) (; CHECK-ALL: (module (type (;0;) (func)) (type (;1;) (func (param i32))) (type (;2;) (func (param anyref))) (import "" "a" (func $a (type 2))) (func $a anyref shim (type 1) (param i32) local.get 0 table.get 0 call $a) (func (;2;) (type 0) i32.const 0 call $a anyref shim) (table (;0;) 32 anyref) (export "foo" (func 2))) ;)