about summary refs log tree commit diff
path: root/tests/crashes/104685.rs
blob: 25ddbb2efaa2ee7d951fce61559cfd052726bc2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@ 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() {}