Lines Matching refs:repr

92 #[repr(C, align(65536))]
256 #[repr(C)]
981 test!(#[repr(C)] #[repr(transparent)] #[repr(packed)](; u8) => Some(0)); in test_trailing_field_offset()
982 test!(#[repr(C)] #[repr(transparent)] #[repr(packed)](; [u8]) => Some(0)); in test_trailing_field_offset()
983 test!(#[repr(C)] #[repr(C, packed)] (u8; u8) => Some(1)); in test_trailing_field_offset()
984 test!(#[repr(C)] (; AU64) => Some(0)); in test_trailing_field_offset()
985 test!(#[repr(C)] (; [AU64]) => Some(0)); in test_trailing_field_offset()
986 test!(#[repr(C)] (u8; AU64) => Some(8)); in test_trailing_field_offset()
987 test!(#[repr(C)] (u8; [AU64]) => Some(8)); in test_trailing_field_offset()
992 #[repr(C)] in test_trailing_field_offset()
998 test!(#[repr(C)] (; Nested<u8, AU64>) => Some(0)); in test_trailing_field_offset()
999 test!(#[repr(C)] (; Nested<u8, [AU64]>) => Some(0)); in test_trailing_field_offset()
1000 test!(#[repr(C)] (u8; Nested<u8, AU64>) => Some(8)); in test_trailing_field_offset()
1001 test!(#[repr(C)] (u8; Nested<u8, [AU64]>) => Some(8)); in test_trailing_field_offset()
1004 test!(#[repr(C, packed( 1))] (u8; elain::Align< 2>) => Some( 1)); in test_trailing_field_offset()
1005 test!(#[repr(C, packed( 2))] (u8; elain::Align< 4>) => Some( 2)); in test_trailing_field_offset()
1006 test!(#[repr(C, packed( 4))] (u8; elain::Align< 8>) => Some( 4)); in test_trailing_field_offset()
1007 test!(#[repr(C, packed( 8))] (u8; elain::Align< 16>) => Some( 8)); in test_trailing_field_offset()
1008 test!(#[repr(C, packed( 16))] (u8; elain::Align< 32>) => Some( 16)); in test_trailing_field_offset()
1009 test!(#[repr(C, packed( 32))] (u8; elain::Align< 64>) => Some( 32)); in test_trailing_field_offset()
1010 test!(#[repr(C, packed( 64))] (u8; elain::Align< 128>) => Some( 64)); in test_trailing_field_offset()
1011 test!(#[repr(C, packed( 128))] (u8; elain::Align< 256>) => Some( 128)); in test_trailing_field_offset()
1012 test!(#[repr(C, packed( 256))] (u8; elain::Align< 512>) => Some( 256)); in test_trailing_field_offset()
1013 test!(#[repr(C, packed( 512))] (u8; elain::Align< 1024>) => Some( 512)); in test_trailing_field_offset()
1014 test!(#[repr(C, packed( 1024))] (u8; elain::Align< 2048>) => Some( 1024)); in test_trailing_field_offset()
1015 test!(#[repr(C, packed( 2048))] (u8; elain::Align< 4096>) => Some( 2048)); in test_trailing_field_offset()
1016 test!(#[repr(C, packed( 4096))] (u8; elain::Align< 8192>) => Some( 4096)); in test_trailing_field_offset()
1017 test!(#[repr(C, packed( 8192))] (u8; elain::Align< 16384>) => Some( 8192)); in test_trailing_field_offset()
1018 test!(#[repr(C, packed( 16384))] (u8; elain::Align< 32768>) => Some( 16384)); in test_trailing_field_offset()
1019 test!(#[repr(C, packed( 32768))] (u8; elain::Align< 65536>) => Some( 32768)); in test_trailing_field_offset()
1020 test!(#[repr(C, packed( 65536))] (u8; elain::Align< 131072>) => Some( 65536)); in test_trailing_field_offset()
1038 test!(#[repr(C, align( 1))] (u8; elain::Align< 2>) => Some( 2)); in test_trailing_field_offset()
1039 test!(#[repr(C, align( 2))] (u8; elain::Align< 4>) => Some( 4)); in test_trailing_field_offset()
1040 test!(#[repr(C, align( 4))] (u8; elain::Align< 8>) => Some( 8)); in test_trailing_field_offset()
1041 test!(#[repr(C, align( 8))] (u8; elain::Align< 16>) => Some( 16)); in test_trailing_field_offset()
1042 test!(#[repr(C, align( 16))] (u8; elain::Align< 32>) => Some( 32)); in test_trailing_field_offset()
1043 test!(#[repr(C, align( 32))] (u8; elain::Align< 64>) => Some( 64)); in test_trailing_field_offset()
1044 test!(#[repr(C, align( 64))] (u8; elain::Align< 128>) => Some( 128)); in test_trailing_field_offset()
1045 test!(#[repr(C, align( 128))] (u8; elain::Align< 256>) => Some( 256)); in test_trailing_field_offset()
1046 test!(#[repr(C, align( 256))] (u8; elain::Align< 512>) => Some( 512)); in test_trailing_field_offset()
1047 test!(#[repr(C, align( 512))] (u8; elain::Align< 1024>) => Some( 1024)); in test_trailing_field_offset()
1048 test!(#[repr(C, align( 1024))] (u8; elain::Align< 2048>) => Some( 2048)); in test_trailing_field_offset()
1049 test!(#[repr(C, align( 2048))] (u8; elain::Align< 4096>) => Some( 4096)); in test_trailing_field_offset()
1050 test!(#[repr(C, align( 4096))] (u8; elain::Align< 8192>) => Some( 8192)); in test_trailing_field_offset()
1051 test!(#[repr(C, align( 8192))] (u8; elain::Align< 16384>) => Some( 16384)); in test_trailing_field_offset()
1052 test!(#[repr(C, align( 16384))] (u8; elain::Align< 32768>) => Some( 32768)); in test_trailing_field_offset()
1053 test!(#[repr(C, align( 32768))] (u8; elain::Align< 65536>) => Some( 65536)); in test_trailing_field_offset()
1117 #[repr(i8)] in test_enum_casts()
1159 test!(#[repr(C)] #[repr(transparent)] #[repr(packed)] () => 0); in test_struct_padding()
1160 test!(#[repr(C)] #[repr(transparent)] #[repr(packed)] (u8) => 0); in test_struct_padding()
1161 test!(#[repr(C)] #[repr(transparent)] #[repr(packed)] (u8, ()) => 0); in test_struct_padding()
1162 test!(#[repr(C)] #[repr(packed)] (u8, u8) => 0); in test_struct_padding()
1164 test!(#[repr(C)] (u8, AU64) => 7); in test_struct_padding()
1170 test!(#[repr(packed)] (u8, u64) => 0); in test_struct_padding()
1179 #[repr(C)] in test_repr_c_struct_padding()
1203 #[repr(align(4))] in test_repr_c_struct_padding()
1226 test!(#[repr(C)] #[repr(packed)] {a: u8} => 0); in test_union_padding()
1227 test!(#[repr(C)] #[repr(packed)] {a: u8, b: u8} => 0); in test_union_padding()
1234 test!(#[repr(C)] #[repr(packed)] {a: u8, b: u64} => 7); in test_union_padding()
1242 … (#[repr($disc:ident $(, $c:ident)?)] { $($vs:ident ($($ts:ty),*),)* } => $expect:expr) => { in test_enum_padding()
1243 test!(@case #[repr($disc $(, $c)?)] { $($vs ($($ts),*),)* } => $expect); in test_enum_padding()
1245 …(#[repr($disc:ident $(, $c:ident)?)] #[$cfg:meta] $(#[$cfgs:meta])* { $($vs:ident ($($ts:ty),*),)*… in test_enum_padding()
1246 test!(@case #[repr($disc $(, $c)?)] #[$cfg] { $($vs ($($ts),*),)* } => $expect); in test_enum_padding()
1247 test!(#[repr($disc $(, $c)?)] $(#[$cfgs])* { $($vs ($($ts),*),)* } => $expect); in test_enum_padding()
1249 …(@case #[repr($disc:ident $(, $c:ident)?)] $(#[$cfg:meta])? { $($vs:ident ($($ts:ty),*),)* } => $e… in test_enum_padding()
1250 #[repr($disc $(, $c)?)] in test_enum_padding()
1264 #[repr(align(2))] in test_enum_padding()
1268 #[repr(align(4))] in test_enum_padding()
1271 test!(#[repr(u8)] #[repr(C)] { in test_enum_padding()
1274 test!(#[repr(u16)] #[repr(C)] { in test_enum_padding()
1278 test!(#[repr(u32)] #[repr(C)] { in test_enum_padding()
1287 test!(#[repr(u8)] { in test_enum_padding()
1290 test!(#[repr(u8)] { in test_enum_padding()
1295 test!(#[repr(u8, C)] { in test_enum_padding()
1298 test!(#[repr(u8, C)] { in test_enum_padding()
1303 test!(#[repr(u8)] #[repr(C)] { in test_enum_padding()
1306 test!(#[repr(u8)] #[repr(C)] { in test_enum_padding()