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 <fstream>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <list>
|
#include <list>
|
||||||
|
#include <limits>
|
||||||
#include <set>
|
#include <set>
|
||||||
#include <stack>
|
#include <stack>
|
||||||
#include <string>
|
#include <string>
|
||||||
@@ -2956,6 +2957,15 @@ namespace basic {
|
|||||||
dummyStatement(&f);
|
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()
|
void testBasic()
|
||||||
{
|
{
|
||||||
testReference1();
|
testReference1();
|
||||||
@@ -2983,6 +2993,7 @@ namespace basic {
|
|||||||
testFork();
|
testFork();
|
||||||
testFunctionPointer();
|
testFunctionPointer();
|
||||||
testPassByReference();
|
testPassByReference();
|
||||||
|
testBigInt();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace basic
|
} // namespace basic
|
||||||
|
Reference in New Issue
Block a user