mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
6d75f54310
Moves the sanitizer ui tests to the sanitizer directory and removes the sanitizer prefix from tests file names similarly to how the sanitizer codegen tests are organized.
16 lines
420 B
Rust
16 lines
420 B
Rust
// 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.
|
|
//
|
|
//@ build-pass
|
|
//@ compile-flags: -Ccodegen-units=1 -Clto -Zsanitizer=cfi -Ctarget-feature=-crt-static
|
|
//@ needs-sanitizer-cfi
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
#[repr(transparent)]
|
|
pub struct Array([u8; 1 * 1]);
|
|
|
|
pub extern "C" fn array() -> Array {
|
|
loop {}
|
|
}
|