]> git.lizzy.rs Git - rust.git/blob - library/std/src/os/raw/tests.rs
Rollup merge of #103701 - WaffleLapkin:__points-at-implementation__--this-can-be...
[rust.git] / library / std / src / os / raw / tests.rs
1 use crate::any::TypeId;
2
3 macro_rules! ok {
4     ($($t:ident)*) => {$(
5         assert!(TypeId::of::<libc::$t>() == TypeId::of::<raw::$t>(),
6                 "{} is wrong", stringify!($t));
7     )*}
8 }
9
10 #[test]
11 fn same() {
12     use crate::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 }