blob: 8e93b194174ff49d3c965c23ce3378e098b48e05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// needs-asm-support
use std::arch::asm;
#[naked]
//~^ the `#[naked]` attribute is an experimental feature
extern "C" fn naked() {
asm!("", options(noreturn))
}
#[naked]
//~^ the `#[naked]` attribute is an experimental feature
extern "C" fn naked_2() -> isize {
asm!("", options(noreturn))
}
fn main() {}
|