2017-11-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / sso / init3.h
blob4d4ecd0f326b858e3cef5fb33ca4a4d9adffdf3c
1 struct __attribute__((scalar_storage_order("little-endian"), packed)) Nested1
3 unsigned C1 : 7;
4 unsigned C2 : 7;
5 unsigned C3 : 7;
6 unsigned B : 3;
7 };
9 struct __attribute__((scalar_storage_order("little-endian"), packed)) R1
11 unsigned S1 : 6;
12 unsigned I : 32;
13 unsigned S2 : 2;
14 struct Nested1 N;
17 struct __attribute__((scalar_storage_order("big-endian"), packed)) Nested2
19 unsigned C1 : 7;
20 unsigned C2 : 7;
21 unsigned C3 : 7;
22 unsigned B : 3;
25 struct __attribute__((scalar_storage_order("big-endian"), packed)) R2
27 unsigned S1 : 6;
28 unsigned I : 32;
29 unsigned S2 : 2;
30 struct Nested2 N;
33 struct R1 My_R1 = { 2, 0x78ABCDEF, 1, { 0x12, 0x34, 0x56, 4 } };
34 struct R2 My_R2 = { 2, 0x78ABCDEF, 1, { 0x12, 0x34, 0x56, 4 } };