aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr94206.c
blob: 9e54bba4ed400430768fe9231fa7ec3abb992791 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do run { target lp64 } } */

struct {
    unsigned long x:33;
} s;
typedef __typeof__(s.x + 0) uint33;

int main()
{
  uint33 x;
  __builtin_memset(&x, -1, sizeof x);
  unsigned long u;
  __builtin_memcpy(&u, &x, sizeof u);
  if (u != -1ul)
    __builtin_abort ();
  return 0;
}