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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
 
3
class A {
4
public:
5
    A(){}
6
    A( const A& a ){}
7
};
8
 
9
class B  : public A
10
{
11
public:
12
  B( int& s) : s_(s){}
13
  int& s_;
14
};
15
 
16
int main()
17
{
18
  int i;
19
  B x1( i );
20
  B x2( x1 );
21
}

powered by: WebSVN 2.1.0

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