URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.dg/] [init/] [const6.C] - Rev 384
Compare with Previous | Blame | View Log
// PR c++/36688
// { dg-do run }
// { dg-options "-O2" }
struct S
{
long long a;
long long b;
long long c;
};
struct T
{
S g;
long long h[12];
};
static const S s = { 1, 2, 3 };
static const T t = { s, 0 };
int
main ()
{
T x = t;
if (__builtin_memcmp (&x, &t, sizeof (T)))
__builtin_abort ();
}