Skip to content

Commit 891f616

Browse files
committed
test
1 parent 4475e50 commit 891f616

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

test/lit/passes/gsi-desc.wast

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,3 +391,26 @@
391391
)
392392
)
393393

394+
(module
395+
;; CHECK: (type $0 (func (param anyref)))
396+
397+
;; CHECK: (type $A (sub (struct)))
398+
(type $A (sub (struct)))
399+
400+
;; CHECK: (func $test (type $0) (param $any anyref)
401+
;; CHECK-NEXT: (drop
402+
;; CHECK-NEXT: (ref.cast (ref $A)
403+
;; CHECK-NEXT: (local.get $any)
404+
;; CHECK-NEXT: )
405+
;; CHECK-NEXT: )
406+
;; CHECK-NEXT: )
407+
(func $test (param $any anyref)
408+
;; We do not handle casts to types without descriptors.
409+
(drop
410+
(ref.cast (ref $A)
411+
(local.get $any)
412+
)
413+
)
414+
)
415+
)
416+

0 commit comments

Comments
 (0)