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"]
|
|
|
|
|
2024-08-04 16:45:48 +02:00
|
|
|
use std::arch::naked_asm;
|
2021-12-10 00:15:33 +00:00
|
|
|
|
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 {
|
2024-09-05 13:45:26 +02:00
|
|
|
naked_asm!("");
|
2021-12-10 00:15:33 +00:00
|
|
|
}
|
2021-08-03 17:43:21 -04:00
|
|
|
}
|