2023-08-09 15:06:46 -05:00
|
|
|
// Regression test for issue 114275 `typeid::typeid_itanium_cxx_abi::transform_ty`
|
|
|
|
// was expecting array type lengths to be evaluated, this was causing an ICE.
|
|
|
|
//
|
2024-02-16 14:02:50 -06:00
|
|
|
//@ build-pass
|
|
|
|
//@ compile-flags: -Ccodegen-units=1 -Clto -Zsanitizer=cfi -Ctarget-feature=-crt-static
|
|
|
|
//@ needs-sanitizer-cfi
|
2023-08-09 15:06:46 -05:00
|
|
|
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
|
|
|
|
#[repr(transparent)]
|
|
|
|
pub struct Array([u8; 1 * 1]);
|
|
|
|
|
|
|
|
pub extern "C" fn array() -> Array {
|
|
|
|
loop {}
|
|
|
|
}
|