diff options
| author | Gary Guo <gary@garyguo.net> | 2024-10-10 15:02:47 +0100 |
|---|---|---|
| committer | Gary Guo <gary@garyguo.net> | 2024-10-10 15:02:47 +0100 |
| commit | bb531083cc0301d2152dc59746eb30472564948d (patch) | |
| tree | 9388316a30d857ddec5d76024ab1df0ac61a6af2 | |
| parent | 8f63b6a7454c05f512515946a0e9ca7e3b904144 (diff) | |
| download | rust-bb531083cc0301d2152dc59746eb30472564948d.tar.gz rust-bb531083cc0301d2152dc59746eb30472564948d.zip | |
Fix longjmp-across-rust test
Destructor are removed from stack because it's considered UB.
| -rw-r--r-- | tests/run-make/longjmp-across-rust/main.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/run-make/longjmp-across-rust/main.rs b/tests/run-make/longjmp-across-rust/main.rs index cc1d5b126dd..0ebf11ac03c 100644 --- a/tests/run-make/longjmp-across-rust/main.rs +++ b/tests/run-make/longjmp-across-rust/main.rs @@ -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(); } |
