]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-naked_functions.rs
Merge commit '27afd6ade4bb1123a8bf82001629b69d23d62aff' into clippyup
[rust.git] / src / test / ui / feature-gates / feature-gate-naked_functions.rs
1 // needs-asm-support
2 #![feature(asm)]
3
4 #[naked]
5 //~^ the `#[naked]` attribute is an experimental feature
6 extern "C" fn naked() {
7     asm!("", options(noreturn))
8 }
9
10 #[naked]
11 //~^ the `#[naked]` attribute is an experimental feature
12 extern "C" fn naked_2() -> isize {
13     asm!("", options(noreturn))
14 }
15
16 fn main() {}