Files
aji/tests/conformance/phase1/reject/value_too_large.air
T
dev 2ddf424c14 verifier: max_value_size and checked size accounting (Q-020, DD-015)
- spec 08 §7.1: platform-independent accounted size table shared by
  max_value_size and max_local_frame; enum tag is the smallest of
  1/2/4/8 bytes; borrows 8, slices 16; checked arithmetic, overflow is
  E5101 with found = "overflow"
- every materializable type in a module must be at most 1 MiB,
  checked before functions are verified; each oversized type reported
  once
- E5101 fields no longer truncate huge sizes
- conformance: frame_too_large, value_too_large, size_overflow
- Q-020 resolved; Phase 1 closed
2026-10-04 13:29:54 +03:00

14 lines
274 B
LLVM

; array<u8, 1048577> exceeds max_value_size even as a parameter type.
; expect: reject E5101
; phase: 1
; spec: docs/spec/08-verifier.md
module test.value_too_large
air 0
lang 0.1
features [arrays, ownership]
fn @f(%a: array<u8, 1048577>) -> void
effects []
entry:
ret