aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/sso/init8.h
blob: a273a78e71866b42ff844f0bbc27b1386d293958 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
struct __attribute__((scalar_storage_order("big-endian"))) Nested1
{
  int C1;
  int C2;
  int C3;
};

struct __attribute__((scalar_storage_order("little-endian"))) R1
{
  int I;
  struct Nested1 N;
};

struct __attribute__((scalar_storage_order("little-endian"))) Nested2
{
  int C1;
  int C2;
  int C3;
};

struct __attribute__((scalar_storage_order("big-endian"))) R2
{
  int I;
  struct Nested2 N;
};

struct R1 My_R1 = { 0x12345678, { 0xAB0012, 0xCD0034, 0xEF0056 } };
struct R2 My_R2 = { 0x12345678, { 0xAB0012, 0xCD0034, 0xEF0056 } };