Fix longjmp-across-rust test · rust-lang/rust@bb53108 (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- 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
Lines changed: 0 additions & 8 deletions
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 | } |