File tree Expand file tree Collapse file tree 3 files changed +18
-11
lines changed
tests/run-make/c-unwind-abi-catch-panic Expand file tree Collapse file tree 3 files changed +18
-11
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ run-make/c-dynamic-rlib/Makefile
4
4
run-make/c-static-dylib/Makefile
5
5
run-make/c-static-rlib/Makefile
6
6
run-make/c-unwind-abi-catch-lib-panic/Makefile
7
- run-make/c-unwind-abi-catch-panic/Makefile
8
7
run-make/cat-and-grep-sanity-check/Makefile
9
8
run-make/cdylib-dylib-linkage/Makefile
10
9
run-make/compiler-lookup-paths-2/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ // A test for calling `C-unwind` functions across foreign function boundaries (FFI).
2
+ // This test triggers a panic when calling a foreign function that calls *back* into Rust.
3
+ // This catches a panic across an FFI boundary and downcasts it into an integer.
4
+ // The Rust code that panics is in the same directory, unlike `c-unwind-abi-catch-lib-panic`.
5
+ // See https://github.com/rust-lang/rust/pull/76570
6
+
7
+ //@ ignore-cross-compile
8
+ // Reason: the compiled binary is executed
9
+ //@ needs-unwind
10
+ // Reason: this test exercises panic unwinding
11
+
12
+ use run_make_support:: { build_native_static_lib, run, rustc} ;
13
+
14
+ fn main ( ) {
15
+ build_native_static_lib ( "add" ) ;
16
+ rustc ( ) . input ( "main.rs" ) . run ( ) ;
17
+ run ( "main" ) ;
18
+ }
You can’t perform that action at this time.
0 commit comments