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

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

  • tests/run-make/longjmp-across-rust

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,11 @@ fn main() {
1010
}
1111
}
1212

13-
structA;
14-
15-
implDropforA{
16-
fndrop(&mutself){}
17-
}
18-
1913
extern"C"fntest_middle(){
20-
let _a = A;
2114
foo();
2215
}
2316

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

0 commit comments

Comments
 (0)