// Atomic compare-exchange dual-ordering validation: the FAILURE ordering may not // be stronger than the SUCCESS ordering (LLVM rule). Here failure=.seq_cst (rank // 3) is stronger than success=.relaxed (rank 0) → loud diagnostic, not invalid IR. // Stream A (atomics) A.2. #import "modules/std.sx"; #import "modules/std/atomic.sx"; main :: () { a := Atomic(i64).init(0); _ := a.compare_exchange(0, 1, .relaxed, .seq_cst); }