13 lines
277 B
Rust
13 lines
277 B
Rust
//@ needs-asm-support
|
|
//@ only-x86_64
|
|
|
|
use std::arch::naked_asm;
|
|
|
|
#[unsafe(naked)]
|
|
#[target_feature(enable = "avx2")]
|
|
//~^ ERROR: `#[target_feature(/* ... */)]` is currently unstable on `#[naked]` functions
|
|
extern "C" fn naked() {
|
|
unsafe { naked_asm!("") }
|
|
}
|
|
|
|
fn main() {}
|