1 struct __attribute__((scalar_storage_order("little-endian"), packed)) Nested1 2 { 3 unsigned C1 : 7; 4 unsigned C2 : 7; 5 unsigned C3 : 7; 6 unsigned B : 3; 7 }; 8 9 struct __attribute__((scalar_storage_order("little-endian"), packed)) R1 10 { 11 unsigned S1 : 6; 12 unsigned I : 32; 13 unsigned S2 : 2; 14 struct Nested1 N; 15 }; 16 17 struct __attribute__((scalar_storage_order("big-endian"), packed)) Nested2 18 { 19 unsigned C1 : 7; 20 unsigned C2 : 7; 21 unsigned C3 : 7; 22 unsigned B : 3; 23 }; 24 25 struct __attribute__((scalar_storage_order("big-endian"), packed)) R2 26 { 27 unsigned S1 : 6; 28 unsigned I : 32; 29 unsigned S2 : 2; 30 struct Nested2 N; 31 }; 32 33 struct R1 My_R1 = { 2, 0x78ABCDEF, 1, { 0x12, 0x34, 0x56, 4 } }; 34 struct R2 My_R2 = { 2, 0x78ABCDEF, 1, { 0x12, 0x34, 0x56, 4 } }; 35