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
Marco Bubke
flatpak-qt-creator
Commits
66e02011
Commit
66e02011
authored
Mar 22, 2010
by
hjk
Browse files
debugger: add some bits to the manual tests
parent
4d9900a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/manual/gdbdebugger/simple/app.cpp
View file @
66e02011
...
...
@@ -901,17 +901,17 @@ void testStdList()
void
testStdMap
()
{
#if 0
std::map<QString, Foo> gg3;
gg3["22.0"] = Foo(22);
gg3["33.0"] = Foo(33);
gg3["44.0"] = Foo(44);
std::map<const char *, Foo> m1;
m1["22.0"] = Foo(22);
m1["33.0"] = Foo(33);
m1["44.0"] = Foo(44);
#if 1
std::map<uint, uint> gg;
gg[11] = 1;
gg[22] = 2;
...
...
@@ -919,9 +919,11 @@ void testStdMap()
gg[44] = 4;
gg[55] = 5;
#endif
std::pair<uint, QStringList> p = std::make_pair(3, QStringList() << "11");
std::vector< std::pair<uint, QStringList> > v;
v.push_back(p);
v.push_back(p);
#if 0
std::map<uint, QStringList> ggl;
ggl[11] = QStringList() << "11";
ggl[22] = QStringList() << "22";
...
...
@@ -944,7 +946,9 @@ void testStdMap()
std::map<int, QString> gg2;
gg2[22] = "22.0";
#endif
#if 1
QObject
ob
;
std
::
map
<
QString
,
QPointer
<
QObject
>
>
map
;
map
[
"Hallo"
]
=
QPointer
<
QObject
>
(
&
ob
);
...
...
@@ -1522,7 +1526,7 @@ int testReference()
{
QString
a
=
"hello"
;
const
QString
&
b
=
fooxx
();
QString
c
=
"world"
;
const
QString
c
=
"world"
;
return
a
.
size
()
+
b
.
size
()
+
c
.
size
();
}
...
...
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