Files
gyehoek-hs/golden/if-false/out.wat
T
2026-07-12 12:33:46 -06:00

13 lines
309 B
WebAssembly Text Format

(module
(type (sub (struct (field (mut i32)))))
(func
(param)
(result (ref eq))
(local (ref eq) (ref eq) (ref eq) (ref eq) (ref eq))
(i32.const 0)
ref.i31
(if
(result i32)
(then (i32.const 777) ref.i31)
(else (i32.const 555) ref.i31)))
(export "main" (func 0)))