Commit 5d133e24 authored by hjk's avatar hjk
Browse files

debugger: add a manual test for typedefed simple types

parent 56fd90e5
...@@ -1811,6 +1811,21 @@ FooVector fooVector() ...@@ -1811,6 +1811,21 @@ FooVector fooVector()
namespace ns { namespace ns {
typedef unsigned long long vl; typedef unsigned long long vl;
typedef vl verylong; typedef vl verylong;
}
void testTypedef()
{
typedef quint32 myType1;
typedef unsigned int myType2;
myType1 t1 = 0;
myType2 t2 = 0;
ns::vl j = 1000;
ns::verylong k = 1000;
++j;
++k;
++t1;
++t2;
}; };
void testStuff() void testStuff()
...@@ -1843,12 +1858,6 @@ void testStuff() ...@@ -1843,12 +1858,6 @@ void testStuff()
str[0] = 'A'; str[0] = 'A';
str[0] = 'A'; str[0] = 'A';
str[0] = 'A'; str[0] = 'A';
/*
ns::vl j = 1000;
ns::verylong k = 1000;
++j;
++k;
*/
} }
void testPassByReferenceHelper(Foo &f) void testPassByReferenceHelper(Foo &f)
...@@ -1922,6 +1931,7 @@ int main(int argc, char *argv[]) ...@@ -1922,6 +1931,7 @@ int main(int argc, char *argv[])
testQLocale(); testQLocale();
testColor(); testColor();
testQRegion(); testQRegion();
testTypedef();
testStuff(); testStuff();
testPeekAndPoke3(); testPeekAndPoke3();
testFunctionPointer(); testFunctionPointer();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment