Files
aji/tests/conformance/std/bounded_arithmetic_payload.air
T

17 lines
354 B
LLVM

; expect: reject E1001
; phase: 0
; spec: docs/spec/16-standard-library.md §2.1.1; docs/spec/07a-air-instructions.md
module test.bounded_payload
air 0
lang 0.1
features []
type @U64Result = enum { ok(u64), overflow }
fn @main() -> @U64Result
effects []
entry:
%wrong = const.bool true
%result = enum.make @U64Result.ok(%wrong)
ret %result