aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr98366.c
blob: 14415bfab9f7cac159efc55806ec65ec2990d1f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR middle-end/98366 */
/* { dg-require-effective-target int32 } */

typedef struct S { int a, b, c : 7, d : 8, e : 17; } S;
const S f[] = { {0, 3, 4, 2, 0} };

int
main ()
{
  if (__builtin_memcmp (f, (S[]){{.b = 3, .c = 4, .d = 2, .e = 0}}, sizeof (S)))
    __builtin_abort ();
  return 0;
}