Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
5d133e24
Commit
5d133e24
authored
Aug 30, 2010
by
hjk
Browse files
debugger: add a manual test for typedefed simple types
parent
56fd90e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/manual/gdbdebugger/simple/app.cpp
View file @
5d133e24
...
...
@@ -1811,6 +1811,21 @@ FooVector fooVector()
namespace
ns
{
typedef
unsigned
long
long
vl
;
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
()
...
...
@@ -1843,12 +1858,6 @@ void testStuff()
str
[
0
]
=
'A'
;
str
[
0
]
=
'A'
;
str
[
0
]
=
'A'
;
/*
ns::vl j = 1000;
ns::verylong k = 1000;
++j;
++k;
*/
}
void
testPassByReferenceHelper
(
Foo
&
f
)
...
...
@@ -1922,6 +1931,7 @@ int main(int argc, char *argv[])
testQLocale
();
testColor
();
testQRegion
();
testTypedef
();
testStuff
();
testPeekAndPoke3
();
testFunctionPointer
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment