summaryrefslogtreecommitdiff
path: root/test/parse/module
diff options
context:
space:
mode:
Diffstat (limited to 'test/parse/module')
-rw-r--r--test/parse/module/bad-module-multi.txt10
-rw-r--r--test/parse/module/bad-module-with-assert.txt10
2 files changed, 20 insertions, 0 deletions
diff --git a/test/parse/module/bad-module-multi.txt b/test/parse/module/bad-module-multi.txt
new file mode 100644
index 00000000..10d8102a
--- /dev/null
+++ b/test/parse/module/bad-module-multi.txt
@@ -0,0 +1,10 @@
+;;; ERROR: 1
+(module (func))
+
+;; Can't have two modules in a .wat file.
+(module)
+(;; STDERR ;;;
+out/test/parse/module/bad-module-multi.txt:5:1: error: unexpected token (, expected EOF.
+(module)
+^
+;;; STDERR ;;)
diff --git a/test/parse/module/bad-module-with-assert.txt b/test/parse/module/bad-module-with-assert.txt
new file mode 100644
index 00000000..5145f611
--- /dev/null
+++ b/test/parse/module/bad-module-with-assert.txt
@@ -0,0 +1,10 @@
+;;; ERROR: 1
+(module (func (export "f")))
+
+;; Can't use assert_return when parsing a .wat file.
+(assert_return (invoke "f"))
+(;; STDERR ;;;
+out/test/parse/module/bad-module-with-assert.txt:5:1: error: unexpected token (, expected EOF.
+(assert_return (invoke "f"))
+^
+;;; STDERR ;;)