Link manifest-selected source graphs with module-local names, qualified structs/enums/functions and task workers through ordinary AIR verification. Keep source inputs bounded, reject source symlinks and preserve explicit grants, diagnostics and deterministic canonical lowering. Integrate spec 12/15, RFC 0021, source reference budgets, roadmap, examples and CI coverage. Validate 579 conformance tests, unit tests, 76 source constructs, hosted smoke, 36 package CLI checks and task schedule stress.
22 lines
528 B
LLVM
22 lines
528 B
LLVM
; expect: reject E1001
|
|
; phase: 0
|
|
; spec: docs/spec/15-source-language.md §14.3; docs/spec/07a-air-instructions.md
|
|
module app.entry
|
|
air 0
|
|
lang 0.1
|
|
features []
|
|
type @app_a_Pair = struct { value: u64 }
|
|
type @app_b_Pair = struct { value: u64 }
|
|
fn @app_a_total(%pair: @app_a_Pair) -> u64
|
|
effects []
|
|
entry:
|
|
%value = struct.get @app_a_Pair.value, %pair
|
|
ret %value
|
|
fn @main() -> u64
|
|
effects []
|
|
entry:
|
|
%value = const.u64 42
|
|
%pair = struct.make @app_b_Pair(%value)
|
|
%result = call @app_a_total(%pair)
|
|
ret %result
|