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] - Blame information for rev 774

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/36688
2
// { dg-do run }
3
// { dg-options "-O2" }
4
 
5
struct S
6
{
7
  long long a;
8
  long long b;
9
  long long c;
10
};
11
 
12
struct T
13
{
14
  S g;
15
  long long h[12];
16
};
17
 
18
static const S s = { 1, 2, 3 };
19
static const T t = { s, 0 };
20
 
21
int
22
main ()
23
{
24
  T x = t;
25
  if (__builtin_memcmp (&x, &t, sizeof (T)))
26
    __builtin_abort ();
27
}

powered by: WebSVN 2.1.0

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