summaryrefslogtreecommitdiff
path: root/test/spec/ref_cast.wast
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2023-09-18 10:45:36 -0700
committerGitHub <noreply@github.com>2023-09-18 10:45:36 -0700
commitcd94f8af963ea8233fc15db35ff8d9e70aff22cf (patch)
tree044d2a677ab589e49fd56420b1cc570a3cc32418 /test/spec/ref_cast.wast
parent16a59938563c93d8459bf36679c83497aeba7cc7 (diff)
downloadbinaryen-cd94f8af963ea8233fc15db35ff8d9e70aff22cf.tar.gz
binaryen-cd94f8af963ea8233fc15db35ff8d9e70aff22cf.tar.bz2
binaryen-cd94f8af963ea8233fc15db35ff8d9e70aff22cf.zip
Remove legacy type defintion text syntax (#5948)
Remove support for the "struct_subtype", "array_subtype", "func_subtype", and "extends" notations we used at various times to declare WasmGC types, leaving only support for the standard text fromat for declaring types. Update all the tests using the old formats and delete tests that existed solely to test the old formats.
Diffstat (limited to 'test/spec/ref_cast.wast')
-rw-r--r--test/spec/ref_cast.wast10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/spec/ref_cast.wast b/test/spec/ref_cast.wast
index 1a09a68f3..e1113fac0 100644
--- a/test/spec/ref_cast.wast
+++ b/test/spec/ref_cast.wast
@@ -1,10 +1,10 @@
(module
(type $t0 (sub (struct)))
- (type $t1 (struct_subtype (field i32) $t0))
- (type $t1' (struct_subtype (field i32) $t1))
- (type $t2 (struct_subtype (field i32) (field i32) $t1))
- (type $t2' (struct_subtype (field i32) (field i32) $t2))
- (type $t3 (struct_subtype (field i32) (field i32) $t2))
+ (type $t1 (sub $t0 (struct (field i32))))
+ (type $t1' (sub $t1 (struct (field i32))))
+ (type $t2 (sub $t1 (struct (field i32) (field i32))))
+ (type $t2' (sub $t2 (struct (field i32) (field i32))))
+ (type $t3 (sub $t2 (struct (field i32) (field i32))))
(global $tab.0 (mut (ref null struct)) (ref.null struct))
(global $tab.1 (mut (ref null struct)) (ref.null struct))