mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
7834ffbebe
this ICE was caused by `transform_ty` in compiler/rustc_symbol_mangling/src/typeid/typeid_itanium_cxx_abi.rs encountering an unevaluated const, while expecting it to already be evaluated. add a regression test Update tests/ui/sanitize/issue-114275-cfi-const-expr-in-arry-len.rs Co-authored-by: Michael Goulet <michael@errs.io> Update tests/ui/sanitize/issue-114275-cfi-const-expr-in-arry-len.rs Co-authored-by: Michael Goulet <michael@errs.io> fix test compiling for targets with -crt-static and failing this was causign https://github.com/rust-lang/rust/pull/114686 to fail
16 lines
417 B
Rust
16 lines
417 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 {}
|
|
}
|