rust/tests/ui/issues/issue-23550.rs

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

23 lines
441 B
Rust
Raw Normal View History

// build-pass
#![feature(core_intrinsics)]
#![allow(warnings)]
use std::intrinsics;
2015-03-30 13:38:27 +00:00
#[derive(Copy, Clone)]
struct Wrap(i64);
// These volatile intrinsics used to cause an ICE
unsafe fn test_bool(p: &mut bool, v: bool) {
intrinsics::volatile_load(p);
intrinsics::volatile_store(p, v);
}
unsafe fn test_immediate_fca(p: &mut Wrap, v: Wrap) {
intrinsics::volatile_load(p);
intrinsics::volatile_store(p, v);
}
fn main() {}