OSDN Git Service

PR middle-end/35526
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / torture / pr35526.C
1 /* { dg-do compile } */
2
3 extern void *memcpy (void *__dest, __const void *__src, __SIZE_TYPE__  __n);
4
5 char internal_crash_read_ip[] = { 0xb8 };
6
7 struct u_internal_crash_read_t
8 {
9   char ip[sizeof (internal_crash_read_ip)];
10 }
11 u_internal_crash_read;
12
13 void
14 gSignalHandler (int psignalNr, int pinfo, int pctx)
15 {
16   memcpy (u_internal_crash_read.ip, internal_crash_read_ip,
17           sizeof (internal_crash_read_ip));
18 }