Files
aji/tests/conformance/phase1/reject/related_borrow_live.air
T

19 lines
380 B
LLVM

; expect: reject E2101
; phase: 1
; spec: docs/spec/10-diagnostics-and-agent-protocol.md §2
module related.rejected
air 0
lang 0.1
features [ownership]
fn @main() -> u64
effects []
entry:
%data = local.alloc u64
local.zero %data
%view = borrow.ref %data
%two = const.u64 2
local.store %data, %two
%result = load %view
borrow.end %view
ret %result