mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
16 lines
283 B
Rust
16 lines
283 B
Rust
//@ check-pass
|
|
//@ needs-asm-support
|
|
#![feature(naked_functions)]
|
|
#![crate_type = "lib"]
|
|
|
|
use std::arch::asm;
|
|
|
|
#[naked]
|
|
pub extern "C" fn naked(p: char) -> u128 {
|
|
//~^ WARN uses type `char`
|
|
//~| WARN uses type `u128`
|
|
unsafe {
|
|
asm!("", options(noreturn));
|
|
}
|
|
}
|