granite-rust/src/test/incremental/issue-72386.rs
Aaron Hill 8da494272f
Add missing ASM arena declaration to librustc_middle
Fixes #72386

This type also needs to get allocated on the `librustc_middle` arena
when we deserialize MIR.
2020-05-23 15:50:37 -04:00

22 lines
403 B
Rust

// revisions: rpass1 cfail1 rpass3
// only-x86_64
// Regression test for issue #72386
// Checks that we don't ICE when switching to an invalid register
// and back again
#![feature(asm)]
#[cfg(any(rpass1, rpass3))]
fn main() {
unsafe {
asm!("nop")
}
}
#[cfg(cfail1)]
fn main() {
unsafe {
asm!("nop",out("invalid_reg")_)
//[cfail1]~^ ERROR invalid register
}
}