1 // Check that rust_eh_personality can have a different type signature than the
2 // one hardcoded in the compiler. Regression test for #70117. Used to fail with:
4 // Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
7 // compile-flags: --crate-type=lib -Ccodegen-units=1
10 #![feature(panic_runtime)]
11 #![feature(rustc_attrs)]
15 impl Drop for DropMe {
19 pub fn test(_: DropMe) {
23 #[rustc_std_internal_symbol]
24 pub unsafe extern "C" fn rust_eh_personality() {}