summaryrefslogtreecommitdiff
path: root/test/parse/expr/bad-setlocal-undefined.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/parse/expr/bad-setlocal-undefined.txt')
-rw-r--r--test/parse/expr/bad-setlocal-undefined.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/parse/expr/bad-setlocal-undefined.txt b/test/parse/expr/bad-setlocal-undefined.txt
new file mode 100644
index 00000000..979e701f
--- /dev/null
+++ b/test/parse/expr/bad-setlocal-undefined.txt
@@ -0,0 +1,5 @@
+;;; ERROR: 1
+(module (func (set_local 0 (i32.const 0))))
+(;; STDERR ;;;
+parse/expr/bad-setlocal-undefined.txt:2:26: local variable out of range (max 0)
+;;; STDERR ;;)