Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanieu committed May 26, 2020
1 parent 7aa8946 commit de53276
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/ui/asm/issue-72570.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
// only-x86_64

#![feature(asm)]

fn main() {
unsafe {
asm!("", in("invalid") "".len());
//~^ ERROR: invalid register `invalid`: unknown register
}
}
8 changes: 8 additions & 0 deletions src/test/ui/asm/issue-72570.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
error: invalid register `invalid`: unknown register
--> $DIR/issue-72570.rs:7:18
|
LL | asm!("", in("invalid") "".len());
| ^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

0 comments on commit de53276

Please sign in to comment.