2016-05-31 11:26:03 -05:00
|
|
|
#![feature(custom_attribute)]
|
|
|
|
#![allow(dead_code, unused_attributes)]
|
|
|
|
|
2016-06-01 12:20:23 -05:00
|
|
|
//error-pattern:literal items (e.g. mentions of function items) are unimplemented
|
2016-05-31 11:26:03 -05:00
|
|
|
|
|
|
|
static mut X: usize = 5;
|
|
|
|
|
|
|
|
#[miri_run]
|
|
|
|
fn static_mut() {
|
|
|
|
unsafe {
|
|
|
|
X = 6;
|
|
|
|
assert_eq!(X, 6);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|