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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [init/] [ref4.C] - Blame information for rev 825

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

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do run }
2
 
3
int c;
4
 
5
struct Base {
6
  Base() {}
7
  Base(const Base &) { ++c; }
8
  Base & operator = (const Base &);
9
};
10
 
11
struct Derived : public Base {};
12
 
13
const Base &b = Derived();
14
 
15
int main()
16
{
17
  return c;  // No copies should be required.
18
}

powered by: WebSVN 2.1.0

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