rust/tests/crashes/104685.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
239 B
Rust
Raw Normal View History

2024-04-19 20:23:17 +00:00
//@ known-bug: #104685
//@ compile-flags: -Zextra-const-ub-checks
#![feature(extern_types)]
extern {
pub type ExternType;
}
extern "C" {
pub static EXTERN: ExternType;
}
pub static EMPTY: () = unsafe { &EXTERN; };
fn main() {}