Fix longjmp-across-rust test · rust-lang/rust@bb53108 (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit bb53108
Fix longjmp-across-rust test
Destructor are removed from stack because it's considered UB.
File tree
1 file changed
lines changed
- tests/run-make/longjmp-across-rust
1 file changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -10,19 +10,11 @@ fn main() { | ||
10 | 10 | } |
11 | 11 | } |
12 | 12 | |
13 | -struct A; | |
14 | - | |
15 | -impl Drop for A { | |
16 | -fn drop(&mut self) {} | |
17 | -} | |
18 | - | |
19 | 13 | extern "C" fn test_middle() { |
20 | -let _a = A; | |
21 | 14 | foo(); |
22 | 15 | } |
23 | 16 | |
24 | 17 | fn foo() { |
25 | -let _a = A; | |
26 | 18 | unsafe { |
27 | 19 | test_end(); |
28 | 20 | } |