summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/torture/pr35526.C
blob: d0a8e6d2c2ff2bdd306f7fa58b27c9815feaf225 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */

extern void *memcpy (void *__dest, __const void *__src, __SIZE_TYPE__  __n);

char internal_crash_read_ip[] = { 0xb8 };

struct u_internal_crash_read_t
{
  char ip[sizeof (internal_crash_read_ip)];
}
u_internal_crash_read;

void
gSignalHandler (int psignalNr, int pinfo, int pctx)
{
  memcpy (u_internal_crash_read.ip, internal_crash_read_ip,
	  sizeof (internal_crash_read_ip));
}