Skip to content

Commit 92e4e8e

Browse files
committed
Add test for issue-37433
1 parent 620567d commit 92e4e8e

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

src/test/ui/issues/issue-37433.rs

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#![feature(asm)]
2+
3+
fn main() {
4+
unsafe {
5+
asm!("" :: "r"(""));
6+
//~^ ERROR: invalid value for constraint in inline assembly
7+
}
8+
}

src/test/ui/issues/issue-37433.stderr

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
error[E0669]: invalid value for constraint in inline assembly
2+
--> $DIR/issue-37433.rs:5:24
3+
|
4+
LL | asm!("" :: "r"(""));
5+
| ^^
6+
7+
error: aborting due to previous error
8+

0 commit comments

Comments
 (0)