]> git.lizzy.rs Git - rust.git/blob - tests/run-pass/threads.rs
test even more size-alignment combinations. found a bug in libstd!
[rust.git] / tests / run-pass / threads.rs
1 // Just instantiate some data structures to make sure we got all their foreign items covered.
2 // Requires full MIR on Windows.
3
4 use std::sync;
5
6 fn main() {
7     let m = sync::Mutex::new(0);
8     drop(m.lock());
9     drop(m);
10
11     // We don't provide RwLock on Windows
12     #[cfg(not(target_os = "windows"))]
13     {
14         let rw = sync::RwLock::new(0);
15         drop(rw.read());
16         drop(rw.write());
17         drop(rw);
18     }
19 }