mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-24 12:03:28 +00:00
24 lines
454 B
Rust
24 lines
454 B
Rust
//@ignore-target-i686
|
|
//@ignore-target-x86
|
|
//@needs-asm-support
|
|
|
|
#[warn(clippy::inline_asm_x86_intel_syntax)]
|
|
#[warn(clippy::inline_asm_x86_att_syntax)]
|
|
mod dont_warn {
|
|
use std::arch::{asm, global_asm};
|
|
|
|
pub(super) unsafe fn use_asm() {
|
|
asm!("");
|
|
asm!("", options());
|
|
asm!("", options(nostack));
|
|
}
|
|
|
|
global_asm!("");
|
|
global_asm!("", options());
|
|
}
|
|
|
|
fn main() {
|
|
unsafe {
|
|
dont_warn::use_asm();
|
|
}
|
|
}
|