blob: 21eb1197c265b603e38a65dad658a27529ec349d (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
;; NOTE: Assertions have been generated by update_lit_checks.py and should not be edited.
;; RUN: wasm-opt %s -all --roundtrip -S -o -
(module
(type $functype (func))
(table $0 48 funcref)
;; a type that appears in the table and nowhere else. this test checks that
;; we do not crash during the roundtrip on seeing an unexpected type that
;; collectHeapTypes() did not scan.
(elem (table $0) (i32.const 0) funcref (ref.null $functype))
)
|