tests: inventory and verify source rejection twins

This commit is contained in:
dev committed 2026-10-08 18:01:58 +03:00
1 parent 09fbf8a5bc
commit e4aacef48c
28 files changed
+1092 -8

No files matched your search

@@ -0,0 +1,11 @@
// expect: reject E3002
// phase: 6
// spec: docs/spec/03-memory-model.md §23
// AIR twin: phase4/reject/frozen_leak.air
module test.twins.frozen_leak
fn main(heap: cap<mem.alloc>) -> void effects [mem.alloc] {
let i = island.create(1u64, heap) or trap;
let f = island.freeze(move i);
return; // diagnostic here: return
}