]> git.lizzy.rs Git - rust.git/blob - src/test/ui/asm/naked-functions-ffi.rs
Rollup merge of #99787 - aDotInTheVoid:rdj-dyn, r=camelid,notriddle,GuillaumeGomez
[rust.git] / src / test / ui / asm / naked-functions-ffi.rs
1 // check-pass
2 // needs-asm-support
3 #![feature(naked_functions)]
4 #![crate_type = "lib"]
5
6 use std::arch::asm;
7
8 #[naked]
9 pub extern "C" fn naked(p: char) -> u128 {
10     //~^ WARN uses type `char`
11     //~| WARN uses type `u128`
12     unsafe {
13         asm!("", options(noreturn));
14     }
15 }