]>
git.proxmox.com Git - rustc.git/blob - tests/ui/allocator/hygiene.rs
6 #![allow(nonstandard_style)]
12 use std
::sync
::atomic
::{AtomicUsize, Ordering}
;
22 pub static GLOBAL
: A
= A(AtomicUsize
::new(0));
25 let n
= GLOBAL
.0.load(Ordering
::SeqCst
);
27 helper
::work_with(&s
);
28 assert_eq
!(GLOBAL
.0.load(Ordering
::SeqCst
), n
+ 1);
30 assert_eq
!(GLOBAL
.0.load(Ordering
::SeqCst
), n
+ 2);