summaryrefslogtreecommitdiff
path: root/test/lit/binary
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2021-11-08 17:35:33 -0800
committerGitHub <noreply@github.com>2021-11-08 17:35:33 -0800
commit31a5bf7ad7dbe30ec47766271ba13276117f98a0 (patch)
treee40a3f1e8b5ddfbed9b8ada1dacfe46f8671f5e4 /test/lit/binary
parented4d22e22414a561e5b5af0064a3a47fc8db1645 (diff)
downloadbinaryen-31a5bf7ad7dbe30ec47766271ba13276117f98a0.tar.gz
binaryen-31a5bf7ad7dbe30ec47766271ba13276117f98a0.tar.bz2
binaryen-31a5bf7ad7dbe30ec47766271ba13276117f98a0.zip
Print heap types in text format in nominal mode (#4316)
Without this roundtripping may not work in nominal mode, as we might not assign the expected heap types in the right places. Specifically, when the signature matches but the nominal types are distinct then we need to keep them that way (and the sugar in the text format parsing will merge them).
Diffstat (limited to 'test/lit/binary')
-rw-r--r--test/lit/binary/heap-types.wast10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/lit/binary/heap-types.wast b/test/lit/binary/heap-types.wast
index 98ece30bf..ff9e59290 100644
--- a/test/lit/binary/heap-types.wast
+++ b/test/lit/binary/heap-types.wast
@@ -21,7 +21,7 @@
;; CHECK-NEXT: )
;; CHECK-NEXT: )
;; CHECK-NEXT: )
- ;; NOMNL: (func $test
+ ;; NOMNL: (func $test (type $none_=>_none)
;; NOMNL-NEXT: (drop
;; NOMNL-NEXT: (ref.test_static $struct.B
;; NOMNL-NEXT: (ref.null $struct.A)
@@ -48,7 +48,7 @@
;; CHECK-NEXT: )
;; CHECK-NEXT: )
;; CHECK-NEXT: )
- ;; NOMNL: (func $test
+ ;; NOMNL: (func $test (type $none_=>_none)
;; NOMNL-NEXT: (drop
;; NOMNL-NEXT: (ref.cast_static $struct.B
;; NOMNL-NEXT: (ref.null $struct.A)
@@ -71,7 +71,7 @@
;; CHECK-NEXT: (struct.new_default $struct.A)
;; CHECK-NEXT: )
;; CHECK-NEXT: )
- ;; NOMNL: (func $test
+ ;; NOMNL: (func $test (type $none_=>_none)
;; NOMNL-NEXT: (drop
;; NOMNL-NEXT: (struct.new_default $struct.A)
;; NOMNL-NEXT: )
@@ -95,7 +95,7 @@
;; CHECK-NEXT: )
;; CHECK-NEXT: )
;; CHECK-NEXT: )
- ;; NOMNL: (func $test
+ ;; NOMNL: (func $test (type $none_=>_none)
;; NOMNL-NEXT: (drop
;; NOMNL-NEXT: (array.new $vector
;; NOMNL-NEXT: (f64.const 3.14159)
@@ -127,7 +127,7 @@
;; CHECK-NEXT: )
;; CHECK-NEXT: )
;; CHECK-NEXT: )
- ;; NOMNL: (func $test
+ ;; NOMNL: (func $test (type $none_=>_none)
;; NOMNL-NEXT: (drop
;; NOMNL-NEXT: (array.init_static $vector
;; NOMNL-NEXT: (f64.const 1)