summaryrefslogtreecommitdiff
path: root/test/spec/ref_func.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/spec/ref_func.txt')
-rw-r--r--test/spec/ref_func.txt30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/spec/ref_func.txt b/test/spec/ref_func.txt
new file mode 100644
index 00000000..3a5cdc33
--- /dev/null
+++ b/test/spec/ref_func.txt
@@ -0,0 +1,30 @@
+;;; TOOL: run-interp-spec
+;;; STDIN_FILE: third_party/testsuite/ref_func.wast
+(;; STDERR ;;;
+out/test/spec/ref_func.wast:98:15: error: function is not declared in any elem sections
+ (ref.func $f1)
+ ^^^
+out/test/spec/ref_func.wast:99:15: error: function is not declared in any elem sections
+ (ref.func $f2)
+ ^^^
+out/test/spec/ref_func.wast:90:29: error: function is not declared in any elem sections
+ (global funcref (ref.func $f1))
+ ^^^
+0000000: error: function is not declared in any elem sections
+000005d: error: OnRefFuncExpr callback failed
+;;; STDERR ;;)
+(;; STDOUT ;;;
+set-g() =>
+set-f() =>
+out/test/spec/ref_func.wast:69: assert_invalid passed:
+ 0000000: error: function variable out of range: 7 (max 2)
+ 0000027: error: EndGlobalInitExpr callback failed
+out/test/spec/ref_func.wast:80: error reading module: "out/test/spec/ref_func/ref_func.3.wasm"
+out/test/spec/ref_func.wast:109: assert_invalid passed:
+ 0000000: error: function is not declared in any elem sections
+ 0000019: error: OnRefFuncExpr callback failed
+out/test/spec/ref_func.wast:113: assert_invalid passed:
+ 0000000: error: function is not declared in any elem sections
+ 000001c: error: OnRefFuncExpr callback failed
+13/13 tests passed.
+;;; STDOUT ;;)