From 739593c590dbea75ab871418b800208029fb0d76 Mon Sep 17 00:00:00 2001 From: hjk Date: Tue, 15 Nov 2011 16:57:43 +0100 Subject: [PATCH] debugger: add manual test for display of big integers Change-Id: I8b6f7f9f446a6dddc31993a463a31f0eb6a4f827 Reviewed-by: hjk --- tests/manual/debugger/simple/simple_test_app.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/manual/debugger/simple/simple_test_app.cpp b/tests/manual/debugger/simple/simple_test_app.cpp index 85ceaa22721..a6d7c3e237a 100644 --- a/tests/manual/debugger/simple/simple_test_app.cpp +++ b/tests/manual/debugger/simple/simple_test_app.cpp @@ -133,6 +133,7 @@ void dummyStatement(...) {} #include #include #include +#include #include #include #include @@ -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::max() - quint64(1); + BREAK_HERE; + dummyStatement(&a, &b, &c); + } + void testBasic() { testReference1(); @@ -2983,6 +2993,7 @@ namespace basic { testFork(); testFunctionPointer(); testPassByReference(); + testBigInt(); } } // namespace basic