Add test for issue-37433
This commit is contained in:
parent
620567d87e
commit
92e4e8e783
2 changed files with 16 additions and 0 deletions
8
src/test/ui/issues/issue-37433.rs
Normal file
8
src/test/ui/issues/issue-37433.rs
Normal file
|
@ -0,0 +1,8 @@
|
|||
#![feature(asm)]
|
||||
|
||||
fn main() {
|
||||
unsafe {
|
||||
asm!("" :: "r"(""));
|
||||
//~^ ERROR: invalid value for constraint in inline assembly
|
||||
}
|
||||
}
|
8
src/test/ui/issues/issue-37433.stderr
Normal file
8
src/test/ui/issues/issue-37433.stderr
Normal file
|
@ -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
|
||||
|
Loading…
Reference in a new issue