Skip to content

Commit

Permalink
Add test for issue-69092
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Mar 13, 2020
1 parent 3609bac commit 7c987eb
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/test/ui/asm/issue-69092.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// build-fail
// ignore-emscripten no asm! support
// Regression test for #69092

#![feature(asm)]

fn main() {
unsafe { asm!(".ascii \"Xen\0\""); }
//~^ ERROR: <inline asm>:1:9: error: expected string in '.ascii' directive
}
11 changes: 11 additions & 0 deletions src/test/ui/asm/issue-69092.stderr
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7c987eb

Please sign in to comment.