]> git.proxmox.com Git - rustc.git/blob - src/test/ui/panic-runtime/abort-link-to-unwind-dylib.rs
New upstream version 1.50.0+dfsg1
[rustc.git] / src / test / ui / panic-runtime / abort-link-to-unwind-dylib.rs
1 // build-fail
2 // compile-flags:-C panic=abort -C prefer-dynamic
3 // ignore-musl - no dylibs here
4 // ignore-emscripten
5 // ignore-sgx no dynamic lib support
6 // error-pattern:`panic_unwind` is not compiled with this crate's panic strategy
7
8 // This is a test where the local crate, compiled with `panic=abort`, links to
9 // the standard library **dynamically** which is already linked against
10 // `panic=unwind`. We should fail because the linked panic runtime does not
11 // correspond with our `-C panic` option.
12 //
13 // Note that this test assumes that the dynamic version of the standard library
14 // is linked to `panic_unwind`, which is currently the case.
15
16 fn main() {
17 }