diff options
Diffstat (limited to 'test/parse/expr/bad-globalset-undefined.txt')
-rw-r--r-- | test/parse/expr/bad-globalset-undefined.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/parse/expr/bad-globalset-undefined.txt b/test/parse/expr/bad-globalset-undefined.txt new file mode 100644 index 00000000..780326f1 --- /dev/null +++ b/test/parse/expr/bad-globalset-undefined.txt @@ -0,0 +1,10 @@ +;;; TOOL: wat2wasm +;;; ERROR: 1 +(module (func + i32.const 1 + global.set 0)) +(;; STDERR ;;; +out/test/parse/expr/bad-globalset-undefined.txt:5:22: error: global variable out of range: 0 (max 0) + global.set 0)) + ^ +;;; STDERR ;;) |