aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr111821.c
blob: eec6eed6c8ed026030c941dd59ced059b3d1d70a (plain)
1
2
3
4
5
6
7
8
9
/* { dg-do compile } */

typedef union { char a[__INT_MAX__ / 4]; } T;
unsigned short f(const void *p)
{
  unsigned short v;
  *(T *)(void *)(&v) = *(const T *)p;
  return v;
}