Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/sso/init3.h @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
struct __attribute__((scalar_storage_order("little-endian"), packed)) Nested1 { unsigned C1 : 7; unsigned C2 : 7; unsigned C3 : 7; unsigned B : 3; }; struct __attribute__((scalar_storage_order("little-endian"), packed)) R1 { unsigned S1 : 6; unsigned I : 32; unsigned S2 : 2; struct Nested1 N; }; struct __attribute__((scalar_storage_order("big-endian"), packed)) Nested2 { unsigned C1 : 7; unsigned C2 : 7; unsigned C3 : 7; unsigned B : 3; }; struct __attribute__((scalar_storage_order("big-endian"), packed)) R2 { unsigned S1 : 6; unsigned I : 32; unsigned S2 : 2; struct Nested2 N; }; struct R1 My_R1 = { 2, 0x78ABCDEF, 1, { 0x12, 0x34, 0x56, 4 } }; struct R2 My_R2 = { 2, 0x78ABCDEF, 1, { 0x12, 0x34, 0x56, 4 } };