1 struct __attribute__((scalar_storage_order("big-endian"))) Nested1 2 { 3 int C1; 4 int C2; 5 int C3; 6 }; 7 8 struct __attribute__((scalar_storage_order("little-endian"))) R1 9 { 10 int I; 11 struct Nested1 N; 12 }; 13 14 struct __attribute__((scalar_storage_order("little-endian"))) Nested2 15 { 16 int C1; 17 int C2; 18 int C3; 19 }; 20 21 struct __attribute__((scalar_storage_order("big-endian"))) R2 22 { 23 int I; 24 struct Nested2 N; 25 }; 26 27 struct R1 My_R1 = { 0x12345678, { 0xAB0012, 0xCD0034, 0xEF0056 } }; 28 struct R2 My_R2 = { 0x12345678, { 0xAB0012, 0xCD0034, 0xEF0056 } }; 29