Fix longjmp-across-rust test

Destructor are removed from stack because it's considered UB.
This commit is contained in:
Gary Guo 2024-10-10 15:02:47 +01:00
parent 8f63b6a745
commit bb531083cc

View File

@ -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();
}