Fix longjmp-across-rust test
Destructor are removed from stack because it's considered UB.
This commit is contained in:
parent
8f63b6a745
commit
bb531083cc
@ -10,19 +10,11 @@ fn main() {
|
||||
}
|
||||
}
|
||||
|
||||
struct A;
|
||||
|
||||
impl Drop for A {
|
||||
fn drop(&mut self) {}
|
||||
}
|
||||
|
||||
extern "C" fn test_middle() {
|
||||
let _a = A;
|
||||
foo();
|
||||
}
|
||||
|
||||
fn foo() {
|
||||
let _a = A;
|
||||
unsafe {
|
||||
test_end();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user