2 // ignore-emscripten no threads support
5 // Don't try to clean up uninitialized locals
10 fn test_break() { loop { let _x: Box<isize> = break; } }
12 fn test_cont() { let mut i = 0; while i < 1 { i += 1; let _x: Box<isize> = continue; } }
14 fn test_ret() { let _x: Box<isize> = return; }
17 fn f() { let _x: Box<isize> = panic!(); }
18 thread::spawn(move|| f() ).join().unwrap_err();
21 fn test_panic_indirect() {
22 fn f() -> ! { panic!(); }
23 fn g() { let _x: Box<isize> = f(); }
24 thread::spawn(move|| g() ).join().unwrap_err();
32 test_panic_indirect();