Add a test for #28587

This commit is contained in:
varkor 2019-02-25 23:56:27 +00:00
parent 295b6fd0f7
commit 5917d9fc62
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,10 @@
#![feature(asm)]
fn main() {
let a: usize;
unsafe {
asm!("" : "=d"(a) : : : );
//~^ ERROR couldn't allocate output register for constraint 'd'
}
}

View File

@ -0,0 +1,8 @@
error: couldn't allocate output register for constraint 'd'
--> $DIR/invalid-inline-asm-2.rs:7:9
|
LL | asm!("" : "=d"(a) : : : );
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error