summaryrefslogtreecommitdiff
path: root/test/passes/simplify-locals_all-features.txt
diff options
context:
space:
mode:
authorDaniel Wirtz <dcode@dcode.io>2020-09-09 03:40:09 +0200
committerGitHub <noreply@github.com>2020-09-09 03:40:09 +0200
commit916ce6f1a9f7c85102a8c69f593b301c8df5d19d (patch)
tree93b22be9f2c0718248528d140b05221cb6878600 /test/passes/simplify-locals_all-features.txt
parent0fdcf5b51a0c8c379b2d3ad8262aa22bb234f0e9 (diff)
downloadbinaryen-916ce6f1a9f7c85102a8c69f593b301c8df5d19d.tar.gz
binaryen-916ce6f1a9f7c85102a8c69f593b301c8df5d19d.tar.bz2
binaryen-916ce6f1a9f7c85102a8c69f593b301c8df5d19d.zip
Update reference types (#3084)
Align with the current state of the reference types proposal: * Remove `nullref` * Remove `externref` and `funcref` subtyping * A `Literal` of a nullable reference type can now represent `null` (previously was type `nullref`) * Update the tests and temporarily comment out those tests relying on subtyping
Diffstat (limited to 'test/passes/simplify-locals_all-features.txt')
-rw-r--r--test/passes/simplify-locals_all-features.txt21
1 files changed, 4 insertions, 17 deletions
diff --git a/test/passes/simplify-locals_all-features.txt b/test/passes/simplify-locals_all-features.txt
index 34efb8726..f461a7580 100644
--- a/test/passes/simplify-locals_all-features.txt
+++ b/test/passes/simplify-locals_all-features.txt
@@ -1882,19 +1882,6 @@
)
)
(module
- (type $none_=>_funcref (func (result funcref)))
- (func $subtype-test (result funcref)
- (local $0 nullref)
- (local $1 funcref)
- (local $2 funcref)
- (block $block
- (nop)
- )
- (nop)
- (local.get $0)
- )
-)
-(module
(type $none_=>_none (func))
(type $i32_exnref_=>_none (func (param i32 exnref)))
(type $exnref_=>_none (func (param exnref)))
@@ -1907,7 +1894,7 @@
(block $label$0
(local.set $0
(br_on_exn $label$0 $event$0
- (ref.null)
+ (ref.null exn)
)
)
)
@@ -1918,7 +1905,7 @@
(drop
(block $label$1 (result exnref)
(br_on_exn $label$1 $event$1
- (ref.null)
+ (ref.null exn)
)
)
)
@@ -1930,7 +1917,7 @@
(try
(do
(rethrow
- (ref.null)
+ (ref.null exn)
)
)
(catch
@@ -1973,7 +1960,7 @@
(i32.const 3)
(try (result exnref)
(do
- (ref.null)
+ (ref.null exn)
)
(catch
(exnref.pop)