Linux test merged.
This commit is contained in:
@@ -6,14 +6,11 @@ struct a
|
||||
a()
|
||||
: m(0)
|
||||
{}
|
||||
a( int e )
|
||||
: m(e)
|
||||
{}
|
||||
|
||||
//private:
|
||||
// a( const a & _ )
|
||||
// : m( _.m+1)
|
||||
// {}
|
||||
a( const a & _ )
|
||||
: m( _.m+1)
|
||||
{}
|
||||
};
|
||||
|
||||
struct b : public a
|
||||
@@ -26,10 +23,9 @@ struct b : public a
|
||||
|
||||
int main()
|
||||
{
|
||||
a o;
|
||||
a o2 = o;
|
||||
std::cout << o2.m << std::endl;
|
||||
// std::cout << o2.m <<' '<<o2.n<< std::endl;
|
||||
b o;
|
||||
b o2 = o;
|
||||
std::cout << o2.m <<' '<<o2.n<< std::endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user