Skip to content

Commit

Permalink
(hopefully) actually use the new call_indirect
Browse files Browse the repository at this point in the history
  • Loading branch information
Gentle committed Jan 28, 2025
1 parent 5b84bc8 commit d2b1c77
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -341,15 +341,16 @@ fn indirect_call_with_reference_types() -> anyhow::Result<()> {
let wat = r#"
(module
(type $sig (func (result i32)))
(table 1 funcref)
(elem (i32.const 0) $f)
(table 0 funcref)
(table $table1 1 funcref)
(elem (table $table1) (i32.const 0) func $f)
(func $f (type $sig)
i32.const 42
)
(func (export "wizer.initialize"))
(func (export "run") (result i32)
i32.const 0
call_indirect (type $sig)
call_indirect $table1 (type $sig)
)
)"#;

Expand Down

0 comments on commit d2b1c77

Please sign in to comment.