summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/lit/parse-bad-assertion.wast8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/lit/parse-bad-assertion.wast b/test/lit/parse-bad-assertion.wast
new file mode 100644
index 000000000..9e6c7ac7f
--- /dev/null
+++ b/test/lit/parse-bad-assertion.wast
@@ -0,0 +1,8 @@
+;; Check that we properly error when an action is missing from an assertion that
+;; requires one. Regression test for #6872.
+
+;; RUN: not wasm-shell %s 2>&1 | filecheck %s
+
+(assert_exhaustion "wrong, lol")
+
+;; CHECK: 6:19: error: expected action