rust/tests/ui/auxiliary/extern_fake_libc.rs

11 lines
213 B
Rust

#![allow(nonstandard_style)]
#![allow(clippy::missing_safety_doc, unused)]
type pid_t = i32;
pub unsafe fn getpid() -> pid_t {
pid_t::from(0)
}
pub fn getpid_SAFE_TRUTH() -> pid_t {
unsafe { getpid() }
}