Move all C++ tests to cpp.
This commit is contained in:
34
cpp/call_constructor.cpp
Normal file
34
cpp/call_constructor.cpp
Normal file
@@ -0,0 +1,34 @@
|
||||
#include <stdio.h>
|
||||
|
||||
class a
|
||||
{
|
||||
public:
|
||||
a()
|
||||
{
|
||||
printf( "kuku\n" );
|
||||
}
|
||||
|
||||
~a()
|
||||
{
|
||||
printf( "~a\n" );
|
||||
}
|
||||
|
||||
int f()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
|
||||
int main()
|
||||
{
|
||||
a o;
|
||||
|
||||
// o.a( 0 );
|
||||
o.~a();
|
||||
|
||||
o.f();
|
||||
|
||||
reinterpret_cast<a*>(0)->a::a();
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user