]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/panic-runtime/abort-link-to-unwind-dylib.rs
2 // compile-flags:-C panic=abort -C prefer-dynamic
3 // ignore-musl - no dylibs here
5 // ignore-sgx no dynamic lib support
6 // error-pattern:`panic_unwind` is not compiled with this crate's panic strategy
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.
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.