OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [init/] [const6.C] - Rev 801

Go to most recent revision | 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 ();
}

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.