Apply review feedback
This commit is contained in:
parent
35349abeb3
commit
01d04944ce
12 changed files with 40 additions and 68 deletions
|
|
@ -1,24 +0,0 @@
|
|||
// run-pass
|
||||
// compile-flags: -Z no-landing-pads -C codegen-units=1
|
||||
// ignore-emscripten no threads support
|
||||
// ignore-test fails because catch_unwind doesn't work with no-landing-pads
|
||||
|
||||
use std::thread;
|
||||
|
||||
static mut HIT: bool = false;
|
||||
|
||||
struct A;
|
||||
|
||||
impl Drop for A {
|
||||
fn drop(&mut self) {
|
||||
unsafe { HIT = true; }
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
thread::spawn(move|| -> () {
|
||||
let _a = A;
|
||||
panic!();
|
||||
}).join().unwrap_err();
|
||||
assert!(unsafe { !HIT });
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue