2024-08-17 14:38:10 -05:00
|
|
|
//@ignore-target: i686 x86
|
2024-02-16 13:02:19 -06:00
|
|
|
//@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();
|
|
|
|
}
|
|
|
|
}
|