aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/bitfield-endian-2.c
blob: 7644f71e846eef8a272a3476ee5cb7dff3bbb3e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-require-effective-target int128 } */

#define ENDIAN __attribute((scalar_storage_order ("little-endian")))

typedef struct ENDIAN
{
  __uint128_t t:124;
  __uint128_t t1:4;
}f;

f g(void)
{
  f t = {1, 2};
  return t;
}