Debian Codegraph @

gcc/testsuite/gcc.dg/sso/init6.h

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