From ddf919bb00d07c65caa516dcec3a5d65cc824abb Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 17 Jul 2024 10:48:34 -0700 Subject: 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 --- test/lit/binary/component-error.test | 6 ++++++ test/lit/binary/component-error.test.wasm | Bin 0 -> 8 bytes 2 files changed, 6 insertions(+) create mode 100644 test/lit/binary/component-error.test create mode 100644 test/lit/binary/component-error.test.wasm (limited to 'test/lit/binary') 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) + diff --git a/test/lit/binary/component-error.test.wasm b/test/lit/binary/component-error.test.wasm new file mode 100644 index 000000000..13d20e9f0 Binary files /dev/null and b/test/lit/binary/component-error.test.wasm differ -- cgit v1.2.3