1 use std::any::TypeId;
2 
3 macro_rules! ok {
4     ($($t:ident)*) => {$(
5         assert!(TypeId::of::<libc::$t>() == TypeId::of::<ffi::$t>(),
6                 "{} is wrong", stringify!($t));
7     )*}
8 }
9 
10 #[test]
same()11 fn same() {
12     use std::ffi;
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