summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/bitfld-5.c
blob: 835bbce3233e5ee93b4679be5f5d0e48c2f340c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { 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 f[sizeof (struct s) != sizeof (int) * 4 ? -1 : 1];