We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58ec930 commit 768969cCopy full SHA for 768969c
1 file changed
test/lit/passes/dae-gc.wast
@@ -292,3 +292,20 @@
292
)
293
294
295
+;; We do not refine the result if the type is final/closed, as we can't
296
+;; subtype it.
297
+(module
298
+ ;; CHECK: (type $func (func (result anyref)))
299
+ (type $func (func (result anyref)))
300
+
301
+ ;; CHECK: (type $A (struct))
302
+ (type $A (struct))
303
304
+ ;; CHECK: (func $export (type $func) (result anyref)
305
+ ;; CHECK-NEXT: (struct.new_default $A)
306
+ ;; CHECK-NEXT: )
307
+ (func $export (export "export") (type $func) (result anyref)
308
+ (struct.new $A)
309
+ )
310
+)
311
0 commit comments