Skip to content

Commit bb53108

Browse files
committed
Fix longjmp-across-rust test
Destructor are removed from stack because it's considered UB.
1 parent 8f63b6a commit bb53108

File tree

1 file changed

+0
-8
lines changed
  • tests/run-make/longjmp-across-rust

1 file changed

+0
-8
lines changed

tests/run-make/longjmp-across-rust/main.rs

-8
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,11 @@ fn main() {
1010
}
1111
}
1212

13-
struct A;
14-
15-
impl Drop for A {
16-
fn drop(&mut self) {}
17-
}
18-
1913
extern "C" fn test_middle() {
20-
let _a = A;
2114
foo();
2215
}
2316

2417
fn foo() {
25-
let _a = A;
2618
unsafe {
2719
test_end();
2820
}

0 commit comments

Comments
 (0)