blob: dad47d85a24663e68abbf8fdb2f246d851e4c323 [file] [log] [blame]
// Just instantiate some data structures to make sure we got all their foreign items covered.
// Requires full MIR on Windows.
use std::sync;
fn main() {
let m = sync::Mutex::new(0);
drop(m.lock());
drop(m);
// We don't provide RwLock on Windows
#[cfg(not(target_os = "windows"))]
{
let rw = sync::RwLock::new(0);
drop(rw.read());
drop(rw.write());
drop(rw);
}
}