blob: 48bd19c6e80f96a731ae2baa612633e3fdf8fcd3 [file] [log] [blame] [edit]
;;; TOOL: run-objdump-gen-wasm
;;; ARGS1: -x
magic
version
section(TYPE) {
count[1]
function params[0] results[1] i32
}
section(FUNCTION) {
count[1]
type[0]
}
section(MEMORY) {
count[1]
has_max[0]
initial[0]
}
section("metadata.code.test") {
function_count[1]
function_index[2]
ann_count[1]
ann_offset[1]
ann_data_size[1]
ann_data[1]
}
section(CODE) {
count[1]
func {
local_decls[0]
i32.const 1
return
}
}
(;; STDERR ;;;
000002f: warning: invalid function index: 2
;;; STDERR ;;)
(;; STDOUT ;;;
bad-code-metadata-function-index.wasm: file format wasm 0x1
Section Details:
Type[1]:
- type[0] () -> i32
Function[1]:
- func[0] sig=0
Memory[1]:
- memory[0] pages: initial=0
Custom:
- name: "metadata.code.test"
Code[1]:
- func[0] size=5
Code Disassembly:
000037 func[0]:
000038: 41 01 | i32.const 1
00003a: 0f | return
00003b: 0b | end
;;; STDOUT ;;)