use super::*;
#[cfg(not(feature = "libc"))]
use native as libc;
fn eq_def_const<A, B>(a: &A, b: &B) -> bool {
core::mem::size_of::<A>() == core::mem::size_of::<B>()
&& core::mem::align_of::<A>() == core::mem::align_of::<B>()
&& osi::mem::eq(a, b)
}
fn eq3_def_const<A, B, C>(a: &A, b: &B, c: &C) -> bool {
eq_def_const(a, b) && eq_def_const(a, c)
}
#[test]
fn platform_availability() {
assert_eq!(core::mem::size_of::<x86::abi::U16>(), 2);
assert_eq!(core::mem::size_of::<x86_64::abi::U16>(), 2);
assert_eq!(core::mem::size_of::<target::abi::U16>(), 2);
assert_eq!(core::mem::size_of::<native::abi::U16>(), 2);
assert_eq!(core::mem::size_of::<libc::abi::U16>(), 2);
}
#[test]
fn comparison() {
assert!(eq3_def_const(&target::errno::EPERM, &native::errno::EPERM, &libc::errno::EPERM));
}