binaryen-sys 0.13.0

Bindings to the binaryen library
Documentation
1
2
3
4
5
6
7
8
9
;; Test that an invalid supertype results in a useful error message

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

;; CHECK: Fatal: Invalid type: Heap type has an invalid supertype at type $sub
(module
  (type $super (sub (struct i32)))
  (type $sub (sub $super (struct i64)))
)