Skip to content

Commit

Permalink
Add test for issue-37433
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Aug 4, 2019
1 parent 620567d commit 92e4e8e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/test/ui/issues/issue-37433.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#![feature(asm)]

fn main() {
unsafe {
asm!("" :: "r"(""));
//~^ ERROR: invalid value for constraint in inline assembly
}
}
8 changes: 8 additions & 0 deletions src/test/ui/issues/issue-37433.stderr
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 92e4e8e

Please sign in to comment.