| ;; 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)) | |
| ) |