2021-08-03 16:43:21 -05:00
|
|
|
// check-pass
|
2021-09-06 10:44:19 -05:00
|
|
|
// needs-asm-support
|
2021-08-03 16:43:21 -05:00
|
|
|
#![feature(naked_functions)]
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
|
2021-12-09 18:15:33 -06:00
|
|
|
use std::arch::asm;
|
|
|
|
|
2021-08-03 16:43:21 -05:00
|
|
|
#[naked]
|
|
|
|
pub extern "C" fn naked(p: char) -> u128 {
|
|
|
|
//~^ WARN uses type `char`
|
|
|
|
//~| WARN uses type `u128`
|
2021-12-09 18:15:33 -06:00
|
|
|
unsafe {
|
|
|
|
asm!("", options(noreturn));
|
|
|
|
}
|
2021-08-03 16:43:21 -05:00
|
|
|
}
|