Projet_SETI_RISC-V/riscv-gnu-toolchain/gcc/gcc/testsuite/gcc.dg/sso/init5.h
2023-03-06 14:48:14 +01:00

14 lines
317 B
C

struct __attribute__((scalar_storage_order("little-endian"))) R1
{
int I;
int A[3];
};
struct __attribute__((scalar_storage_order("big-endian"))) R2
{
int I;
int A[3];
};
struct R1 My_R1 = { 0x12345678, { 0xAB0012, 0xCD0034, 0xEF0056 } };
struct R2 My_R2 = { 0x12345678, { 0xAB0012, 0xCD0034, 0xEF0056 } };