diff options
Diffstat (limited to 'test/lit/binary')
-rw-r--r-- | test/lit/binary/bad-datacount.test | 9 | ||||
-rwxr-xr-x | test/lit/binary/bad-datacount.test.wasm | bin | 0 -> 177 bytes |
2 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 diff --git a/test/lit/binary/bad-datacount.test.wasm b/test/lit/binary/bad-datacount.test.wasm Binary files differnew file mode 100755 index 000000000..e7b6e4bb7 --- /dev/null +++ b/test/lit/binary/bad-datacount.test.wasm |