Add test for issue-51431

This commit is contained in:
Yuki Okushi 2019-10-22 17:01:06 +09:00
parent a239c8dfb2
commit dd0f98bc3e
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,10 @@
// ignore-emscripten no asm! support
#![feature(asm)]
fn main() {
unsafe {
asm! {"mov $0,$1"::"0"("bx"),"1"(0x00)}
//~^ 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-51431.rs:7:32
|
LL | asm! {"mov $0,$1"::"0"("bx"),"1"(0x00)}
| ^^^^
error: aborting due to previous error