Sign in
rust
/
rust
/
HEAD
/
.
/
compiler
/
rustc_codegen_gcc
/
tests
/
compile
/
global_asm_nul_byte.rs
blob: 12d647c733f21ded35d615c5b992b923fb5e6f1c [
file
]
// Compiler:
// status: error
// stderr:
// error: asm contains a NUL byte
// ...
// Test that global_asm containing a NUL byte emits an error.
#![
crate_type
=
"lib"
]
use
std
::
arch
::
global_asm
;
global_asm
!(
"\0"
);