Skip to content

Commit 27e0fd2

Browse files
committed
(hopefully) actually use the new call_indirect
1 parent 55e8bc1 commit 27e0fd2

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

tests/tests.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -341,15 +341,16 @@ fn indirect_call_with_reference_types() -> anyhow::Result<()> {
341341
let wat = r#"
342342
(module
343343
(type $sig (func (result i32)))
344-
(table 1 funcref)
345-
(elem (i32.const 0) $f)
344+
(table 0 funcref)
345+
(table $table1 1 funcref)
346+
(elem (table $table1) (i32.const 0) func $f)
346347
(func $f (type $sig)
347348
i32.const 42
348349
)
349350
(func (export "wizer.initialize"))
350351
(func (export "run") (result i32)
351352
i32.const 0
352-
call_indirect (type $sig)
353+
call_indirect $table1 (type $sig)
353354
)
354355
)"#;
355356

0 commit comments

Comments
 (0)