test referencing unsupported extern static
This commit is contained in:
parent
7b07fc385c
commit
390899e8b9
10
tests/compile-fail/extern_static.rs
Normal file
10
tests/compile-fail/extern_static.rs
Normal file
@ -0,0 +1,10 @@
|
||||
#![feature(raw_ref_op)]
|
||||
//! Even referencing an unknown `extern static` already triggers an error.
|
||||
|
||||
extern "C" {
|
||||
static mut FOO: i32;
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let _val = unsafe { &raw const FOO }; //~ ERROR is not supported by Miri
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user