diff options
author | Thomas Lively <tlively@google.com> | 2023-09-18 10:45:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-18 10:45:36 -0700 |
commit | cd94f8af963ea8233fc15db35ff8d9e70aff22cf (patch) | |
tree | 044d2a677ab589e49fd56420b1cc570a3cc32418 /test/lit/passes/optimize-instructions-gc-iit.wast | |
parent | 16a59938563c93d8459bf36679c83497aeba7cc7 (diff) | |
download | binaryen-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/lit/passes/optimize-instructions-gc-iit.wast')
-rw-r--r-- | test/lit/passes/optimize-instructions-gc-iit.wast | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/lit/passes/optimize-instructions-gc-iit.wast b/test/lit/passes/optimize-instructions-gc-iit.wast index cc5e8aec9..1cd92d98a 100644 --- a/test/lit/passes/optimize-instructions-gc-iit.wast +++ b/test/lit/passes/optimize-instructions-gc-iit.wast @@ -13,7 +13,7 @@ (type $parent (sub (struct (field i32)))) ;; CHECK: (type $child (sub $parent (struct (field i32) (field f64)))) ;; TNH: (type $child (sub $parent (struct (field i32) (field f64)))) - (type $child (struct_subtype (field i32) (field f64) $parent)) + (type $child (sub $parent (struct (field i32) (field f64)))) ;; CHECK: (type $other (struct (field i64) (field f32))) ;; TNH: (type $other (struct (field i64) (field f32))) (type $other (struct (field i64) (field f32))) @@ -203,16 +203,16 @@ ;; CHECK-NEXT: (type $A (sub (struct ))) ;; TNH: (rec ;; TNH-NEXT: (type $A (sub (struct ))) - (type $A (struct_subtype data)) + (type $A (sub (struct ))) ;; CHECK: (type $B (sub $A (struct (field (ref null $A))))) ;; TNH: (type $B (sub $A (struct (field (ref null $A))))) - (type $B (struct_subtype (field (ref null $A)) $A)) + (type $B (sub $A (struct (field (ref null $A))))) ;; CHECK: (type $C (sub $B (struct (field (ref null $D))))) ;; TNH: (type $C (sub $B (struct (field (ref null $D))))) - (type $C (struct_subtype (field (ref null $D)) $B)) + (type $C (sub $B (struct (field (ref null $D))))) ;; CHECK: (type $D (sub $A (struct ))) ;; TNH: (type $D (sub $A (struct ))) - (type $D (struct_subtype $A)) + (type $D (sub $A (struct ))) ) ;; CHECK: (func $test (type $4) (param $C (ref $C)) (result anyref) |