blob: 2b9d165a94e0561ccc411846fdd718e07bca1591 [file]
;; NOTE: Assertions have been generated by update_lit_checks.py --all-items and should not be edited.
;; RUN: wasm-ctor-eval %s --ctors=func --kept-exports=func --quiet -all -S -o - | filecheck %s
;; The empty segment here has a huge offset. We do not flatten it into a
;; segment full of zeroes that starts at 0 (the flat form), since that would
;; OOM, so we fail to eval the ctor here.
(module
;; CHECK: (type $0 (func))
;; CHECK: (memory $mem i64 16 16 shared)
(memory $mem i64 16 16 shared)
;; CHECK: (data $data (i64.const 4294968321) "")
(data $data (i64.const 4294968321) "")
;; CHECK: (export "func" (func $func))
;; CHECK: (func $func (type $0)
;; CHECK-NEXT: )
(func $func (export "func")
)
)