forked from qt-creator/qt-creator
debugger: add manual test for display of big integers
Change-Id: I8b6f7f9f446a6dddc31993a463a31f0eb6a4f827 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -133,6 +133,7 @@ void dummyStatement(...) {}
|
||||
#include <fstream>
|
||||
#include <map>
|
||||
#include <list>
|
||||
#include <limits>
|
||||
#include <set>
|
||||
#include <stack>
|
||||
#include <string>
|
||||
@@ -2956,6 +2957,15 @@ namespace basic {
|
||||
dummyStatement(&f);
|
||||
}
|
||||
|
||||
void testBigInt()
|
||||
{
|
||||
qint64 a = Q_INT64_C(0x0102030405060708090a);
|
||||
quint64 b = Q_UINT64_C(0x0102030405060708090a);
|
||||
quint64 c = std::numeric_limits<quint64>::max() - quint64(1);
|
||||
BREAK_HERE;
|
||||
dummyStatement(&a, &b, &c);
|
||||
}
|
||||
|
||||
void testBasic()
|
||||
{
|
||||
testReference1();
|
||||
@@ -2983,6 +2993,7 @@ namespace basic {
|
||||
testFork();
|
||||
testFunctionPointer();
|
||||
testPassByReference();
|
||||
testBigInt();
|
||||
}
|
||||
|
||||
} // namespace basic
|
||||
|
Reference in New Issue
Block a user