rust/tests/ui/asm/naked-functions-ffi.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
231 B
Rust
Raw Normal View History

//@ check-pass
//@ needs-asm-support
#![crate_type = "lib"]
use std::arch::naked_asm;
2025-03-29 17:30:11 +01:00
#[unsafe(naked)]
pub extern "C" fn naked(p: char) -> u128 {
//~^ WARN uses type `char`
//~| WARN uses type `u128`
2025-03-29 17:30:11 +01:00
naked_asm!("")
}