File tree Expand file tree Collapse file tree 3 files changed +18
-7
lines changed
tests/run-make/longjmp-across-rust Expand file tree Collapse file tree 3 files changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,6 @@ run-make/link-path-order/Makefile
72
72
run-make/linkage-attr-on-static/Makefile
73
73
run-make/long-linker-command-lines-cmd-exe/Makefile
74
74
run-make/long-linker-command-lines/Makefile
75
- run-make/longjmp-across-rust/Makefile
76
75
run-make/lto-linkage-used-attr/Makefile
77
76
run-make/lto-no-link-whole-rlib/Makefile
78
77
run-make/lto-smoke-c/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ // longjmp, an error handling function used in C, is useful
2
+ // for jumping out of nested call chains... but it used to accidentally
3
+ // trigger Rust's cleanup system in a way that caused an unexpected abortion
4
+ // of the program. After this was fixed in #48572, this test compiles and executes
5
+ // a program that jumps between Rust and its C library, with longjmp included. For
6
+ // the test to succeed, no unexpected abortion should occur.
7
+ // See https://github.com/rust-lang/rust/pull/48572
8
+
9
+ //@ ignore-cross-compile
10
+ // Reason: the compiled binary is executed
11
+
12
+ use run_make_support:: { build_native_static_lib, run, rustc} ;
13
+
14
+ fn main ( ) {
15
+ build_native_static_lib ( "foo" ) ;
16
+ rustc ( ) . input ( "main.rs" ) . run ( ) ;
17
+ run ( "main" ) ;
18
+ }
You can’t perform that action at this time.
0 commit comments