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,48 @@
#include <stdio.h>
class A
{
public:
A()
{
puts( "called A::A()" );
}
A( int /*fake*/ )
{
puts( "called A::A( int )" );
}
};
class B : virtual public A
{
public:
B()
: A( 6 )
{
puts( "called B::B()" );
}
};
class C : public B
{
public:
C()
{
puts( "called C::C()" );
}
};
int main ()
{
puts( "constructing C object" );
C o;
puts( "" );
puts( "constructing B object" );
B ob;
return 0;
}