summaryrefslogtreecommitdiff
path: root/test/lit/binary/component-error.test
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2024-07-17 10:48:34 -0700
committerGitHub <noreply@github.com>2024-07-17 10:48:34 -0700
commitddf919bb00d07c65caa516dcec3a5d65cc824abb (patch)
treee5985b37b2f4215007aa0ae588821e3e5041246a /test/lit/binary/component-error.test
parent9cee7d0c886fac271674ab495b3c15134719abdc (diff)
downloadbinaryen-ddf919bb00d07c65caa516dcec3a5d65cc824abb.tar.gz
binaryen-ddf919bb00d07c65caa516dcec3a5d65cc824abb.tar.bz2
binaryen-ddf919bb00d07c65caa516dcec3a5d65cc824abb.zip
Error more clearly on wasm components (#6751)
Component binary format: https://github.com/WebAssembly/component-model/blob/main/design/mvp/Binary.md#component-definitions Context: https://github.com/WebAssembly/binaryen/issues/6728#issuecomment-2231288924
Diffstat (limited to 'test/lit/binary/component-error.test')
-rw-r--r--test/lit/binary/component-error.test6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/lit/binary/component-error.test b/test/lit/binary/component-error.test
new file mode 100644
index 000000000..57bcec457
--- /dev/null
+++ b/test/lit/binary/component-error.test
@@ -0,0 +1,6 @@
+# Verify that we show an error when given a component.
+
+;; RUN: not wasm-opt %s.wasm 2>&1 | filecheck %s
+
+;; CHECK: this looks like a wasm component, which Binaryen does not support yet (see https://github.com/WebAssembly/binaryen/issues/6728)
+