blob: e32979dc2b5108c410d13588f91e0f14bfa6be27 [file] [log] [blame]
//@compile-flags: -Zmiri-genmc -Zmiri-disable-stacked-borrows
//@normalize-stderr-test: "\n *= note: inside `std::.*" -> ""
// We should be able to spawn and join standard library threads in GenMC mode.
// Since these threads do nothing, we should only explore 1 program execution.
const N: usize = 2;
fn main() {
let handles: Vec<_> = (0..N).map(|_| std::thread::spawn(thread_func)).collect();
handles.into_iter().for_each(|handle| handle.join().unwrap());
}
fn thread_func() {}