Files
aji/tests/conformance/phase1/reject/use_after_move.air
T
dev 17a55a7fef Initial import: Aji 0.1 draft spec and Zig scaffolding
Draft specification, RFCs, reference registries and examples, plus the
reference-implementation skeleton: build.zig, diagnostic envelope with
error-code registry synced to docs, aji CLI, conformance runner with seed
tests, CI and contributor docs.
2026-10-04 11:59:13 +03:00

12 lines
210 B
LLVM

; %p is moved into %q and then used again.
; expect: reject E2001
; phase: 1
; spec: docs/spec/03-memory-model.md
fn @f(%p: Own<u64>) -> Own<u64>
effects []
entry:
%q = move %p
%r = move %p
ret %r