Skip to content
Permalink
Browse files

Add a test for #28587

  • Loading branch information...
varkor committed Feb 25, 2019
1 parent 295b6fd commit 5917d9fc62522d50b45e5fd682a905aef2e1723b
Showing with 18 additions and 0 deletions.
  1. +10 −0 src/test/ui/asm/invalid-inline-asm-2.rs
  2. +8 −0 src/test/ui/asm/invalid-inline-asm-2.stderr
@@ -0,0 +1,10 @@
#![feature(asm)]

fn main() {
let a: usize;

unsafe {
asm!("" : "=d"(a) : : : );
//~^ ERROR couldn't allocate output register for constraint 'd'
}
}
@@ -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

0 comments on commit 5917d9f

Please sign in to comment.
You can’t perform that action at this time.