about summary refs log tree commit diff
path: root/tests/ui/asm/naked-functions-ffi.rs
blob: 4ba5ccc57f6526d215c553a1226628f842e0ea7d (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ check-pass
//@ needs-asm-support
#![crate_type = "lib"]

use std::arch::naked_asm;

#[unsafe(naked)]
pub extern "C" fn naked(p: char) -> u128 {
    //~^ WARN uses type `char`
    naked_asm!("")
}