From bb531083cc0301d2152dc59746eb30472564948d Mon Sep 17 00:00:00 2001 From: Gary Guo Date: Thu, 10 Oct 2024 15:02:47 +0100 Subject: [PATCH] Fix longjmp-across-rust test Destructor are removed from stack because it's considered UB. --- tests/run-make/longjmp-across-rust/main.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tests/run-make/longjmp-across-rust/main.rs b/tests/run-make/longjmp-across-rust/main.rs index cc1d5b126dd35..0ebf11ac03c9d 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(); }