Skip to content

Commit

Permalink
Fix longjmp-across-rust test
Browse files Browse the repository at this point in the history
Destructor are removed from stack because it's considered UB.
  • Loading branch information
nbdd0121 committed Oct 10, 2024
1 parent 8f63b6a commit bb53108
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tests/run-make/longjmp-across-rust/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit bb53108

Please sign in to comment.