Owner review of the RFC 0007 implementation: - spec 11 §8.1: xoshiro256** with SplitMix64 seeding specified bit for bit, fill consumes ceil(n/8) outputs LSB first; golden vector; own implementation replaces std.Random (whose seeding differs) - spec 07a: canonical run record; stdout/stderr as UTF-8 strings or base64 objects, files always base64 objects - spec 11 §8: blocked only at global quiescence (no runnable unit, no known future event, unfinished execution) - reserved feature resource_joins; test names are permanent and rule-descriptive (renamed resource_*/borrow_* tests) - plan: remaining Phase 2 order heap/regions -> unsafe -> hosted -> reports -> aji.toml
18 lines
422 B
LLVM
18 lines
422 B
LLVM
; The ok target of fs.open_read takes exactly one parameter.
|
|
; expect: reject E5002
|
|
; phase: 2
|
|
; spec: docs/reference/intrinsics.md
|
|
module test.intrinsic_ok_arity
|
|
air 0
|
|
lang 0.1
|
|
features [arrays, capabilities, effects, ownership, resources]
|
|
|
|
fn @f(%c: cap<fs.read>, %p: slice<u8>) -> void
|
|
effects [fs.read]
|
|
entry:
|
|
intrinsic fs.open_read(%c, %p), ok -> @opened, err -> @fail
|
|
opened:
|
|
ret
|
|
fail(%e: io_error):
|
|
ret
|