repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/37276
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
init
/
copy1.C
blob
91a84ae3e3cc8a68f5b6488517c92ca5f98cb757
1
// { 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
}