forked from WebAssembly/binaryen
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Error on multivalue inputs that we do not handle (WebAssembly#5962)
Before in getType() we silently dropped the params of a signature type. Now we verify that it is none, or we error. Helps WebAssembly#5950
- Loading branch information
1 parent
d2c54c5
commit 85ae738
Showing
5 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
;; Test that we error properly on a block with a bad multivalue (inputs). | ||
|
||
;; File contents: | ||
;; | ||
;; (module | ||
;; (func $test | ||
;; i32.const 0 | ||
;; (block (param i32) | ||
;; drop | ||
;; ) | ||
;; ) | ||
;; ) | ||
|
||
;; RUN: not wasm-opt -all %s.wasm 2>&1 | filecheck %s | ||
|
||
;; CHECK: control flow inputs are not supported yet |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
;; Test that we error properly on an if with a bad multivalue (inputs). | ||
|
||
;; File contents: | ||
;; | ||
;; (module | ||
;; (func $test | ||
;; i32.const 0 | ||
;; i32.const 1 | ||
;; (if (param i32) | ||
;; (then | ||
;; drop | ||
;; ) | ||
;; (else | ||
;; drop | ||
;; ) | ||
;; ) | ||
;; ) | ||
;; ) | ||
|
||
;; RUN: not wasm-opt -all %s.wasm 2>&1 | filecheck %s | ||
|
||
;; CHECK: control flow inputs are not supported yet |
Binary file not shown.