summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/bitfld-6.c
blob: a9a7f4099929e1985c2769ee5bbd3fb4c1eb5e2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-options "" } */
#include <limits.h>

struct s
{
  int i1 : sizeof (int) * CHAR_BIT;
  int i2 : sizeof (int) * CHAR_BIT;
  int i3 : sizeof (int) * CHAR_BIT;
  int i4 : sizeof (int) * CHAR_BIT;
  int i5 : sizeof (int) * CHAR_BIT;
  int i6 : sizeof (int) * CHAR_BIT;
  int i7 : sizeof (int) * CHAR_BIT;
  int i8 : sizeof (int) * CHAR_BIT;
};

int f[sizeof (struct s) != sizeof (int) * 8 ? -1 : 1];