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
34f24e09
Commit
34f24e09
authored
May 26, 2010
by
hjk
Browse files
debugger: add manual test for arguments passed by reference
parent
2630fc2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/manual/gdbdebugger/simple/app.cpp
View file @
34f24e09
...
...
@@ -1591,6 +1591,17 @@ int testReference()
return
a
.
size
()
+
b
.
size
()
+
c
.
size
();
}
void
testPassByReferenceHelper
(
Foo
&
f
)
{
++
f
.
a
;
}
void
testPassByReference
()
{
Foo
f
(
12
);
testPassByReferenceHelper
(
f
);
}
int
main
(
int
argc
,
char
*
argv
[])
{
testPeekAndPoke3
();
...
...
@@ -1638,6 +1649,7 @@ int main(int argc, char *argv[])
testStdString
();
testStdVector
();
testPassByReference
();
testPlugin
();
testQList
();
testQLinkedList
();
...
...
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