]>
git.proxmox.com Git - rustc.git/blob - tests/ui/lto/auxiliary/thinlto-dylib.rs
1 // Auxiliary crate for test issue-105637: the LTOed dylib which had duplicate symbols from libstd,
2 // breaking the panic hook feature.
4 // This simulates the `rustc_driver` crate, and the main crate simulates rustc's main binary hooking
7 // compile-flags: -Zdylib-lto -C lto=thin
12 // Install the hook we want to see executed
13 panic
::set_hook(Box
::new(|_
| {
14 eprintln
!("LTOed auxiliary crate panic hook");
17 // Trigger the panic hook with an ICE