Add test for issue-37433

This commit is contained in:
Yuki Okushi 2019-08-04 21:22:42 +09:00
parent 620567d87e
commit 92e4e8e783
2 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,8 @@
#![feature(asm)]
fn main() {
unsafe {
asm!("" :: "r"(""));
//~^ ERROR: invalid value for constraint in inline assembly
}
}

View file

@ -0,0 +1,8 @@
error[E0669]: invalid value for constraint in inline assembly
--> $DIR/issue-37433.rs:5:24
|
LL | asm!("" :: "r"(""));
| ^^
error: aborting due to previous error