tests: extend rejection twins across public semantic features

This commit is contained in:
dev committed 2026-10-08 19:14:12 +03:00
1 parent 272aebfd32
commit 06d8a1a76a
32 files changed
+396 -22

No files matched your search

@@ -0,0 +1,14 @@
// atomic.load.seq_cst lacks atomic; atomic.new and atomic.take require no effect.
// expect: reject E3101
// phase: 6
// spec: docs/spec/05-effects-and-capabilities.md §13
// AIR twin: phase5/reject/missing_atomic_effect.air
module test.source_missing_atomic_effect
fn main() -> u64
effects []
{
let c = atomic.new(0u64);
let x = atomic.load(ref c, seq_cst); // diagnostic here: atomic.load
let v = atomic.take(move c);
0
}