Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
intrinsics
/
intrinsic-atomics-cc.rs
blob: ce3fa7b0c05e68a7652a046ff100a63045d53b3d [
file
] [
log
] [
blame
]
// 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
);
}