summaryrefslogtreecommitdiff
path: root/test/lit/binary/bad-datacount.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/lit/binary/bad-datacount.test')
-rw-r--r--test/lit/binary/bad-datacount.test9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/lit/binary/bad-datacount.test b/test/lit/binary/bad-datacount.test
new file mode 100644
index 000000000..27e0c72a3
--- /dev/null
+++ b/test/lit/binary/bad-datacount.test
@@ -0,0 +1,9 @@
+RUN: not wasm-opt --debug %s.wasm 2>&1 | filecheck %s
+
+;; Check that we get the expected error.
+
+;; CHECK: data count and data sections disagree on size
+
+;; Check that we print out the module rather than hitting an assertion error.
+
+;; CHECK: (module