binaryen-sys 0.13.0

Bindings to the binaryen library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
;; Test that incorrect nominal types result in the expected parse errors

;; RUN: foreach %s %t not wasm-opt -all 2>&1 | filecheck %s

;; CHECK: [parse exception: unknown supertype: ( type $bad-func ( sub $bad ( func ) ) ) (at 2:24)]
(module
  (type $bad-func (sub $bad (func)))
)

;; CHECK: [parse exception: unknown supertype: ( type $bad-struct ( sub $bad ( struct ) ) ) (at 2:26)]
(module
  (type $bad-struct (sub $bad (struct)))
)

;; CHECK: [parse exception: unknown supertype: ( type $bad-array ( sub $bad ( array i32 ) ) ) (at 2:25)]
(module
  (type $bad-array (sub $bad (array i32)))
)