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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [init/] [array18.C] - Blame information for rev 718

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/20142
2
// { dg-do run }
3
 
4
int n=4;
5
 
6
struct A
7
{
8
  A() {}
9
  A& operator= (const A&) { --n; return *this; }
10
};
11
 
12
struct B
13
{
14
  A x[2][2];
15
};
16
 
17
int main()
18
{
19
  B b;
20
  b = b;
21
  return n;
22
}

powered by: WebSVN 2.1.0

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