2022-06-19 11:45:05 -05:00
|
|
|
//! Even referencing an unknown `extern static` already triggers an error.
|
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
static E: [u8; 0];
|
|
|
|
}
|
|
|
|
|
|
|
|
static X: &'static [u8; 0] = unsafe { &E };
|
|
|
|
|
|
|
|
fn main() {
|
2022-07-11 06:44:55 -05:00
|
|
|
let _val = X; //~ ERROR: is not supported by Miri
|
2022-06-19 11:45:05 -05:00
|
|
|
}
|