diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/lit/passes/dae-gc.wast | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/lit/passes/dae-gc.wast b/test/lit/passes/dae-gc.wast index 0ea322ce8..833a56a1f 100644 --- a/test/lit/passes/dae-gc.wast +++ b/test/lit/passes/dae-gc.wast @@ -579,16 +579,16 @@ ) ;; This function does a return call of the one after it. The one after it - ;; returns a ref.func of this one. They both begin by returning a funcref; if - ;; we refine the return type of the latter (which ref.func allows us to do) - ;; then the return type would not match, and we would get a validation error. + ;; returns a ref.func of this one. They both begin by returning a funcref; + ;; after refining the return type of the second function, it will have a more + ;; specific type (which is ok as subtyping is allowed with tail calls). ;; CHECK: (func $do-return-call (result funcref) ;; CHECK-NEXT: (return_call $return-ref-func) ;; CHECK-NEXT: ) (func $do-return-call (result funcref) (return_call $return-ref-func) ) - ;; CHECK: (func $return-ref-func (result funcref) + ;; CHECK: (func $return-ref-func (result (ref $none_=>_funcref)) ;; CHECK-NEXT: (ref.func $do-return-call) ;; CHECK-NEXT: ) (func $return-ref-func (result funcref) |