current commit
260605.3 · Fuzz with start functions (#8736)
;; NOTE: Assertions have been generated by update_lit_checks.py --output=fuzz-exec and should not be edited.

;; RUN: foreach %s %t wasm-opt -all --fuzz-exec-before | filecheck %s

;; The start function calls the table-get import. The exported table does not
;; yet exist, so this traps.

(module
 ;; CHECK:      [exception thrown: failed to instantiate module]
 (import "fuzzing-support" "table-get" (func $table-get (param i32) (result funcref)))

 (table $0 i64 8 funcref)

 (export "table" (table $0))

 (start $0)

 (func $0
  (drop
   (call $table-get
    (i32.const 0)
   )
  )
 )
)