Add test for issue-69092

This commit is contained in:
Yuki Okushi 2020-03-13 09:04:27 +09:00
parent 3609bac340
commit 7c987eb020
No known key found for this signature in database
GPG key ID: B0986C85C0E2DAA1
2 changed files with 21 additions and 0 deletions

View file

@ -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
}

View file

@ -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