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

45
cpp/test.cpp Normal file
View File

@@ -0,0 +1,45 @@
// test.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#if 0
template <class C>
class aaa
{
public: virtual C getC() = 0;
};
template <class C>
class ccc : public aaa<C>
{
public: virtual C getC(){ return 0; }
};
template class ccc<int>;
template class ccc<double>;
template class ccc<long long>;
class bbb : public ccc<int>,
public ccc<double>,
public ccc<long long>
{
public:
// using ccc<int>::getC;
virtual int ccc<int>::getC() { return 1; }
virtual long long ccc<long long>::getC() { return 1; }
virtual double ccc<double>::getC() { return 1; }
};
#endif
int _tmain(int argc, _TCHAR* argv[])
{
// bbb o;
// int i = static_cast<aaa<int>*>(&o)->getC();
// double d = static_cast<aaa<double>*>(&o)->getC();
// long long ll = static_cast<aaa<long long>*>(&o)->getC();
std::cout << sizeof( long long ) << std::endl;
return 0;
}