Sign in
rust
/
rust
/
HEAD
/
.
/
compiler
/
rustc_codegen_gcc
/
tests
/
compile
/
asm_nul_byte.rs
blob: fd5a4f98aa27f38b9dd32243bf6ed84042bb28c7 [
file
]
// Compiler:
// status: error
// stderr:
// error: asm contains a NUL byte
// ...
// Test that inline asm containing a NUL byte emits an error.
use
std
::
arch
::
asm
;
fn
main
()
{
unsafe
{
asm
!(
"\0"
);
}
}