summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/parse/module/bad-table-invalid-function.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/parse/module/bad-table-invalid-function.txt b/test/parse/module/bad-table-invalid-function.txt
new file mode 100644
index 00000000..6269a381
--- /dev/null
+++ b/test/parse/module/bad-table-invalid-function.txt
@@ -0,0 +1,10 @@
+;;; ERROR: 1
+(module
+ (table 1 anyfunc)
+ (func $f)
+ (elem (i32.const 0) $f 1))
+(;; STDERR ;;;
+parse/module/bad-table-invalid-function.txt:5:26: function variable out of range (max 1)
+ (elem (i32.const 0) $f 1))
+ ^
+;;; STDERR ;;)