summaryrefslogtreecommitdiff
path: root/test/binary/ignore-custom-section-error-wasm2wat.txt
blob: d2d8a1f8cf39f61e8324e6cd506bf648a0014464 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
;;; TOOL: run-gen-wasm
;;; ARGS1: --ignore-custom-section-errors
;;; ARGS2: --ignore-custom-section-errors
magic
version
section("linking") {
  metadata_version[2]
  2 3 4 5 6 7
}

;; Some dummy data to make sure the module is still parsed after the invalid
;; linking section.
section(TYPE) { count[1] function params[0] results[0] }
section(FUNCTION) { count[1] type[0] }
section(CODE) {
  count[1]
  func {
    locals[0]
    return
  }
}
(;; STDERR ;;;
0000019: warning: unable to read u32 leb128: subsection size
0000019: warning: unable to read u32 leb128: subsection size
;;; STDERR ;;)
(;; STDOUT ;;;
(module
  (type (;0;) (func))
  (func (;0;) (type 0)
    return))
;;; STDOUT ;;)