summaryrefslogtreecommitdiff
path: root/test/lit/exec/eh-legacy-gc.wast
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2024-05-28 10:32:02 -0700
committerGitHub <noreply@github.com>2024-05-28 10:32:02 -0700
commit13f3fd2bb76a41f146382ebf7303869c1088c73e (patch)
tree8895e95a07eddeddf13598de22b6cb94bf0696aa /test/lit/exec/eh-legacy-gc.wast
parentf9ce00bd1f2457f5d2779d122199251978c7f851 (diff)
downloadbinaryen-13f3fd2bb76a41f146382ebf7303869c1088c73e.tar.gz
binaryen-13f3fd2bb76a41f146382ebf7303869c1088c73e.tar.bz2
binaryen-13f3fd2bb76a41f146382ebf7303869c1088c73e.zip
[EH] Rename old EH tests from -old to -legacy (#6627)
This renames old EH tests in the form of `-eh-old.wast` to `-eh-legacy.wast`, to be clearer in names.
Diffstat (limited to 'test/lit/exec/eh-legacy-gc.wast')
-rw-r--r--test/lit/exec/eh-legacy-gc.wast28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/lit/exec/eh-legacy-gc.wast b/test/lit/exec/eh-legacy-gc.wast
new file mode 100644
index 000000000..f10a27c57
--- /dev/null
+++ b/test/lit/exec/eh-legacy-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 (export "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