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