This repository was archived by the owner on May 28, 2025. It is now read-only.
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
44run-make/c-static-dylib/Makefile
55run-make/c-static-rlib/Makefile
66run-make/c-unwind-abi-catch-lib-panic/Makefile
7- run-make/c-unwind-abi-catch-panic/Makefile
87run-make/cat-and-grep-sanity-check/Makefile
98run-make/cdylib-dylib-linkage/Makefile
109run-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