912b3912b4
Plus a script to compile/link/run them. Change-Id: Iac8ffcda3a73902261c07a7b4e5d967a19414c75 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1564058 Commit-Queue: Jakob Kummerow <jkummerow@chromium.org> Reviewed-by: Michael Achenbach <machenbach@chromium.org> Cr-Commit-Position: refs/heads/master@{#60911}
13 lines
345 B
Plaintext
13 lines
345 B
Plaintext
(module
|
|
(table (export "table") 2 10 funcref)
|
|
|
|
(func (export "call_indirect") (param i32 i32) (result i32)
|
|
(call_indirect (param i32) (result i32) (local.get 0) (local.get 1))
|
|
)
|
|
|
|
(func $f (export "f") (param i32) (result i32) (local.get 0))
|
|
(func (export "g") (param i32) (result i32) (i32.const 666))
|
|
|
|
(elem (i32.const 1) $f)
|
|
)
|