diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/lit/cast-to-basic.wast | 8 | ||||
-rw-r--r-- | test/lit/heap-types.wast | 3 | ||||
-rw-r--r-- | test/lit/passes/remove-unused-brs-gc.wast | 2 |
3 files changed, 6 insertions, 7 deletions
diff --git a/test/lit/cast-to-basic.wast b/test/lit/cast-to-basic.wast index ee82d9204..4c2e7c047 100644 --- a/test/lit/cast-to-basic.wast +++ b/test/lit/cast-to-basic.wast @@ -5,14 +5,14 @@ ;; RUN: wasm-opt %s -all --roundtrip -S -o - | filecheck %s (module - ;; CHECK: (func $test (type $1) (result i32) + ;; CHECK: (func $test (type $1) (param $x structref) (result i32) ;; CHECK-NEXT: (ref.test (ref struct) - ;; CHECK-NEXT: (ref.null none) + ;; CHECK-NEXT: (local.get $x) ;; CHECK-NEXT: ) ;; CHECK-NEXT: ) - (func $test (result i32) + (func $test (param $x (ref null struct)) (result i32) (ref.test (ref struct) - (ref.null none) + (local.get $x) ) ) diff --git a/test/lit/heap-types.wast b/test/lit/heap-types.wast index 45132846e..4613f4894 100644 --- a/test/lit/heap-types.wast +++ b/test/lit/heap-types.wast @@ -8,12 +8,11 @@ ;; RUN: foreach %s %t wasm-opt -all --roundtrip -S -o - | filecheck %s (module - ;; CHECK: (type $struct.A (struct (field i32))) (type $struct.A (struct i32)) (type $struct.B (struct i32)) ;; CHECK: (func $test (type $0) ;; CHECK-NEXT: (drop - ;; CHECK-NEXT: (ref.test (ref $struct.A) + ;; CHECK-NEXT: (ref.test (ref none) ;; CHECK-NEXT: (ref.null none) ;; CHECK-NEXT: ) ;; CHECK-NEXT: ) diff --git a/test/lit/passes/remove-unused-brs-gc.wast b/test/lit/passes/remove-unused-brs-gc.wast index ce06b89ef..53100cc91 100644 --- a/test/lit/passes/remove-unused-brs-gc.wast +++ b/test/lit/passes/remove-unused-brs-gc.wast @@ -639,7 +639,7 @@ ;; CHECK-NEXT: (drop ;; CHECK-NEXT: (if (result i32) ;; CHECK-NEXT: (local.get $x) - ;; CHECK-NEXT: (ref.test (ref $struct) + ;; CHECK-NEXT: (ref.test (ref none) ;; CHECK-NEXT: (ref.null none) ;; CHECK-NEXT: ) ;; CHECK-NEXT: (i32.const 0) |