Rollup merge of #73019 - matthiaskrgr:test_72960, r=Xanewok

add test for #72960

Fixes #72960

r? @Xanewok
This commit is contained in:
Dylan DPC 2020-06-05 13:07:10 +02:00 committed by GitHub
commit 14fd5950a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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());
| ^^^^^^^^^^^^^^^^^^^^^^