diff options
Diffstat (limited to 'test/parse/expr/callref-imported-function.txt')
-rw-r--r-- | test/parse/expr/callref-imported-function.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/parse/expr/callref-imported-function.txt b/test/parse/expr/callref-imported-function.txt new file mode 100644 index 00000000..255f7c19 --- /dev/null +++ b/test/parse/expr/callref-imported-function.txt @@ -0,0 +1,11 @@ +;;; TOOL: wat2wasm +;;; ARGS: --enable-function-references +(module + (import "" "foo" (func $foo (param i32) (result i32))) + (func (export "main") (result i32) + (call_ref (i32.const 10) + (ref.func $foo) + ) + ) + (elem declare funcref (ref.func $foo)) +) |