summaryrefslogtreecommitdiff
path: root/test/lit/parse-error.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/lit/parse-error.wast')
-rw-r--r--test/lit/parse-error.wast10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/lit/parse-error.wast b/test/lit/parse-error.wast
new file mode 100644
index 000000000..c301103b2
--- /dev/null
+++ b/test/lit/parse-error.wast
@@ -0,0 +1,10 @@
+;; Test that parse errors have helpful messages
+
+;; RUN: not wasm-opt %s 2>&1 | filecheck %s
+;; CHECK: [parse exception: abc (at 8:4)]
+
+(module
+ (func $foo
+ (abc)
+ )
+)