rust/src/test/run-pass/intrinsic-atomics-cc.rs
2012-09-03 16:01:51 -07:00

12 lines
222 B
Rust

// xfail-fast - check-fast doesn't understand aux-build
// aux-build:cci_intrinsic.rs
use cci_intrinsic;
import cci_intrinsic::atomic_xchg;
fn main() {
let mut x = 1;
atomic_xchg(&mut x, 5);
assert x == 5;
}