blob: ce3fa7b0c05e68a7652a046ff100a63045d53b3d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// run-pass
// aux-build:cci_intrinsic.rs
extern crate cci_intrinsic;
use cci_intrinsic::atomic_xchg_seqcst;
pub fn main() {
let mut x = 1;
atomic_xchg_seqcst(&mut x, 5);
assert_eq!(x, 5);
}
|