summaryrefslogtreecommitdiff
path: root/test/binary/bad-subsection-out-of-order.txt
blob: e0e73938675c71fc2f046755be4e3279d02698eb (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
;;; TOOL: run-gen-wasm-bad
magic
version
section(TYPE) { count[1] function params[0] results[1] i32 }
section(FUNCTION) { count[1] type[0] }
section(CODE) {
  count[1]
  func {
    locals[decl_count[1] i32_count[1] i32]
    local.get 0
  }
}
section("name") {
  section(NAME_LOCALS) {
    count[0]
  }

  section(NAME_FUNCTION) {
    count[0]
  }
}
(;; STDERR ;;;
0000028: error: out-of-order sub-section
0000028: error: out-of-order sub-section
;;; STDERR ;;)