URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-dev/] [fsf-gcc-snapshot-1-mar-12/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [init/] [const6.C] - Rev 783
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 ();
}