rust/tests/ui/asm/tainting-on-error.rs

14 lines
199 B
Rust
Raw Normal View History

//@ needs-asm-support
use std::arch::asm;
fn main() {
unsafe {
asm!(
"/* {} */",
sym None::<()>,
//~^ ERROR invalid `sym` operand
);
}
}