blob: 511a7f7fe6225ef8a90fbe9438b8e38c3cb2d6fc [file] [log] [blame] [edit]
;;; FLAGS: --spec
(assert_invalid
(module
(func
i32.const 1
drop)
(export "foo" (func 1)))
"unknown function 1") ;; string is ignored
(assert_invalid
(module
(func (result i32)
nop))
"type mismatch")