3 // ignore-emscripten no threads support
6 // Don't try to clean up uninitialized locals
11 fn test_break() { loop { let _x: Box<isize> = break; } }
13 fn test_cont() { let mut i = 0; while i < 1 { i += 1; let _x: Box<isize> = continue; } }
15 fn test_ret() { let _x: Box<isize> = return; }
18 fn f() { let _x: Box<isize> = panic!(); }
19 thread::spawn(move|| f() ).join().unwrap_err();
22 fn test_panic_indirect() {
23 fn f() -> ! { panic!(); }
24 fn g() { let _x: Box<isize> = f(); }
25 thread::spawn(move|| g() ).join().unwrap_err();
33 test_panic_indirect();