]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-naked_functions.rs
Auto merge of #79780 - camelid:use-summary_opts, r=GuillaumeGomez
[rust.git] / src / test / ui / feature-gates / feature-gate-naked_functions.rs
1 #![feature(asm)]
2
3 #[naked]
4 //~^ the `#[naked]` attribute is an experimental feature
5 extern "C" fn naked() {
6     asm!("", options(noreturn))
7 }
8
9 #[naked]
10 //~^ the `#[naked]` attribute is an experimental feature
11 extern "C" fn naked_2() -> isize {
12     asm!("", options(noreturn))
13 }
14
15 fn main() {}