blob: ac1f6f9453cc5847691274ff8864a50fdba7a416 [file] [log] [blame] [edit]
;;; TOOL: run-objdump-gen-wasm
;;; ARGS: -x
;;; ERROR: 1
magic
version
section(TYPE) { count[1] function params[0] results[1] i32 }
section(FUNCTION) { count[1] type[0] }
section(CODE) {
count[1]
func {
locals[0]
invalid_op[0xff]
}
}
(;; STDERR ;;;
0000019: error: unexpected opcode: 0xff
;;; STDERR ;;)
(;; STDOUT ;;;
bad-opcode.wasm: file format wasm 0x1
Section Details:
Type[1]:
- type[0] () -> i32
Function[1]:
- func[0] sig=0
Code[1]:
- func[0] size=3
Code Disassembly:
000017 func[0]:
;;; STDOUT ;;)