We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4475e50 commit 891f616Copy full SHA for 891f616
test/lit/passes/gsi-desc.wast
@@ -391,3 +391,26 @@
391
)
392
393
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
406
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