URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [torture/] [pr35526.C] - Rev 801
Go to most recent revision | Compare with Previous | Blame | View Log
/* { 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));
}
Go to most recent revision | Compare with Previous | Blame | View Log