Skip to content

Commit 7c987eb

Browse files
committed
Add test for issue-69092
1 parent 3609bac commit 7c987eb

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

src/test/ui/asm/issue-69092.rs

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// build-fail
2+
// ignore-emscripten no asm! support
3+
// Regression test for #69092
4+
5+
#![feature(asm)]
6+
7+
fn main() {
8+
unsafe { asm!(".ascii \"Xen\0\""); }
9+
//~^ ERROR: <inline asm>:1:9: error: expected string in '.ascii' directive
10+
}

src/test/ui/asm/issue-69092.stderr

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
error: <inline asm>:1:9: error: expected string in '.ascii' directive
2+
.ascii "Xen
3+
^
4+
5+
--> $DIR/issue-69092.rs:8:14
6+
|
7+
LL | unsafe { asm!(".ascii \"Xen\0\""); }
8+
| ^^^^^^^^^^^^^^^^^^^^^^^^^
9+
10+
error: aborting due to previous error
11+

0 commit comments

Comments
 (0)