aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/debugger
diff options
context:
space:
mode:
authorRobert Loehning <robert.loehning@theqtcompany.com>2016-02-23 13:43:06 +0100
committerhjk <hjk@theqtcompany.com>2016-02-24 10:29:25 +0000
commit54e553ac9b56ff79eb91c982fde01df2beb724dd (patch)
treeeedfeba9265a3b9ce3b3b3276e2ada58d07f6e29 /tests/manual/debugger
parent7591fc715c51006ff3d0dc88b24c34c179c5b246 (diff)
Tests: Add test for "using" keyword
Change-Id: I7c1563a69fe6f135a15eb86c1bcfe6b8050de193 Reviewed-by: hjk <hjk@theqtcompany.com>
Diffstat (limited to 'tests/manual/debugger')
-rw-r--r--tests/manual/debugger/simple/simple_test_app.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/manual/debugger/simple/simple_test_app.cpp b/tests/manual/debugger/simple/simple_test_app.cpp
index 603f964341a..dbafce4bac0 100644
--- a/tests/manual/debugger/simple/simple_test_app.cpp
+++ b/tests/manual/debugger/simple/simple_test_app.cpp
@@ -5240,6 +5240,8 @@ namespace basic {
namespace ns {
typedef unsigned long long vl;
typedef vl verylong;
+ using uvl = unsigned long long;
+ using usingverylong = uvl;
}
void testTypedef()
@@ -5259,6 +5261,23 @@ namespace basic {
dummyStatement(&j, &k, &t1, &t2);
}
+ void testUsing()
+ {
+ using myType1 = quint32;
+ using myType2 = unsigned int;
+ myType1 t1 = 0;
+ myType2 t2 = 0;
+ ns::uvl j = 1000;
+ ns::usingverylong k = 1000;
+ BREAK_HERE;
+ // Check j 1000 basic::ns::uvl.
+ // Check k 1000 basic::ns::usingverylong.
+ // Check t1 0 basic::myType1.
+ // Check t2 0 basic::myType2.
+ // Continue.
+ dummyStatement(&j, &k, &t1, &t2);
+ }
+
void testStruct()
{
Foo f(2);
@@ -5804,6 +5823,7 @@ namespace basic {
testFunction();
testAlphabeticSorting();
testTypedef();
+ testUsing();
testPointer();
testPointerTypedef();
testStruct();