add test for #72960

Fixes #72960
This commit is contained in:
Matthias Krüger 2020-06-05 12:03:43 +02:00
parent 219380d840
commit 254f61ae43
2 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,6 @@
// compile-flags: -Zsave-analysis
// only-x86_64
// Also test for #72960
#![feature(asm)]

View File

@ -1,5 +1,5 @@
error: invalid register `invalid`: unknown register
--> $DIR/issue-72570.rs:7:18
--> $DIR/issue-72570.rs:9:18
|
LL | asm!("", in("invalid") "".len());
| ^^^^^^^^^^^^^^^^^^^^^^