We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3609bac commit 7c987ebCopy full SHA for 7c987eb
src/test/ui/asm/issue-69092.rs
@@ -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
@@ -0,0 +1,11 @@
+error: <inline asm>:1:9: error: expected string in '.ascii' directive
+ .ascii "Xen
+ ^
+ --> $DIR/issue-69092.rs:8:14
+ |
+LL | unsafe { asm!(".ascii \"Xen\0\""); }
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
+error: aborting due to previous error
11
0 commit comments