blob: dadbee47b98603b9cd792d90ba44cef44b383b75 [file] [log] [blame]
//@compile-flags: -Zmiri-genmc -Zmiri-disable-stacked-borrows
// 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() {}