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