diff options
author | Alon Zakai <azakai@google.com> | 2023-06-20 11:54:28 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-20 11:54:28 -0700 |
commit | e41c4dad76aed33a90237e0a3ce140d29f75418c (patch) | |
tree | c6a369972a4d85d2be52b6582ae9176ba9382c59 /test/lit/exec | |
parent | 7d17b409e68bb8b92e2c13e5d992470e15db1455 (diff) | |
download | binaryen-e41c4dad76aed33a90237e0a3ce140d29f75418c.tar.gz binaryen-e41c4dad76aed33a90237e0a3ce140d29f75418c.tar.bz2 binaryen-e41c4dad76aed33a90237e0a3ce140d29f75418c.zip |
Fix pop assertion (#5777)
Subtypes are allowed as well, not just exact matches, in the pop value's type.
Diffstat (limited to 'test/lit/exec')
-rw-r--r-- | test/lit/exec/eh-gc.wast | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/lit/exec/eh-gc.wast b/test/lit/exec/eh-gc.wast new file mode 100644 index 000000000..cac2f6adf --- /dev/null +++ b/test/lit/exec/eh-gc.wast @@ -0,0 +1,28 @@ +;; NOTE: Assertions have been generated by update_lit_checks.py --output=fuzz-exec and should not be edited. + +;; RUN: wasm-opt %s -all --fuzz-exec -q -o /dev/null 2>&1 | filecheck %s + +(module + (tag $tag (param externref)) + + ;; CHECK: [fuzz-exec] calling catch-null + (func "catch-null" + (try $label$3 + (do + ;; Throw a null. + (throw $tag + (ref.null noextern) + ) + ) + (catch $tag + ;; The popped type here is more refined than external (it is a bottom type) + ;; which we should not error on. + (drop + (pop externref) + ) + ) + ) + ) +) +;; CHECK: [fuzz-exec] calling catch-null +;; CHECK-NEXT: [fuzz-exec] comparing catch-null |