blob: 2d745b50eddd16366ade211ace7cfac924ba9b7b [file] [log] [blame]
/* { dg-do compile } */
// { dg-options "-fpermissive" }
// { dg-prune-output "narrowing" }
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));
}