xref: /drstd/src/std/os/raw/tests.rs (revision 9670759b785600bf6315e4173e46a602f16add7a)
1 use crate::std::any::TypeId;
2 use dlibc;
3 macro_rules! ok {
4     ($($t:ident)*) => {$(
5         assert!(TypeId::of::<dlibc::$t>() == TypeId::of::<raw::$t>(),
6                 "{} is wrong", stringify!($t));
7     )*}
8 }
9 
10 #[test]
same()11 fn same() {
12     use crate::std::os::raw;
13     ok!(c_char c_schar c_uchar c_short c_ushort c_int c_uint c_long c_ulong
14         c_longlong c_ulonglong c_float c_double);
15 }
16