blob: 1eb87c6263f2858bab12c02ef084b9738e514a3f [file] [log] [blame] [edit]
;;; TOOL: run-gen-wasm
;;; FLAGS: -v
magic
version
section("foo") { count[4] }
section(TYPE) { count[1] function params[0] results[1] i32 }
section("bar") { count[5] }
section("foo") { count[6] }
(;; STDOUT ;;;
BeginModule(version: 1)
BeginCustomSection('foo', size: 5)
EndCustomSection
BeginTypeSection(5)
OnTypeCount(1)
OnType(index: 0, params: [], results: [i32])
EndTypeSection
BeginCustomSection('bar', size: 5)
EndCustomSection
BeginCustomSection('foo', size: 5)
EndCustomSection
EndModule
(module
(type (;0;) (func (result i32))))
;;; STDOUT ;;)