Move all C++ tests to cpp.

This commit is contained in:
2014-05-31 22:55:50 +04:00
parent 1c1c6fe543
commit 7cdff553c8
52 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
#include <iostream>
struct a
{
int m;
a()
: m(0)
{}
//private:
a( const a & _ )
: m( _.m+1)
{}
};
struct b : public a
{
int n;
b()
: n(0)
{}
};
int main()
{
b o;
b o2 = o;
std::cout << o2.m <<' '<<o2.n<< std::endl;
return 0;
}