2007-08-17 00:36:07 +02:00
|
|
|
/* try.cpp - for trying out some language features....
|
|
|
|
|
* scons will create the binary bin/try
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
// 8/07 - how to control NOBUG??
|
2007-08-31 14:57:49 +02:00
|
|
|
// execute with NOBUG_LOG='ttt:TRACE' bin/try
|
2008-01-04 01:44:40 +01:00
|
|
|
// 1/08 - working out a static initialisation problem for Visitor (Tag creation)
|
2008-01-27 03:58:24 +01:00
|
|
|
// 1/08 - check 64bit longs
|
2007-08-17 00:36:07 +02:00
|
|
|
|
|
|
|
|
|
2008-01-04 01:44:40 +01:00
|
|
|
#include <nobug.h>
|
|
|
|
|
#include <iostream>
|
2007-08-17 00:36:07 +02:00
|
|
|
|
2008-01-27 03:58:24 +01:00
|
|
|
#include <limits>
|
|
|
|
|
|
|
|
|
|
|
2008-01-04 01:44:40 +01:00
|
|
|
using std::string;
|
|
|
|
|
using std::cout;
|
2007-08-17 00:36:07 +02:00
|
|
|
|
2008-01-04 01:44:40 +01:00
|
|
|
NOBUG_CPP_DEFINE_FLAG(test);
|
|
|
|
|
|
2007-08-17 00:36:07 +02:00
|
|
|
|
|
|
|
|
int main (int argc, char* argv[])
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
NOBUG_INIT;
|
|
|
|
|
|
2008-01-27 03:58:24 +01:00
|
|
|
int64_t lol (1);
|
|
|
|
|
cout << sizeof(lol)<< "\n";
|
|
|
|
|
|
|
|
|
|
cout << "long: "<< std::numeric_limits<long>::max()
|
|
|
|
|
<<" 64: " << std::numeric_limits<int64_t>::max()
|
|
|
|
|
<<"\n";
|
2007-08-17 00:36:07 +02:00
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
}
|