blob: 361bc2033934ab666195a00aff9f823aafa08e2c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
//@ignore-target: i686 x86
//@needs-asm-support
//@check-pass
#[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() {
unsafe {
asm!("");
asm!("", options());
asm!("", options(nostack));
}
}
global_asm!("");
global_asm!("", options());
}
fn main() {
unsafe {
dont_warn::use_asm();
}
}
|