Commit 34f24e09 authored by hjk's avatar hjk
Browse files

debugger: add manual test for arguments passed by reference

parent 2630fc2a
......@@ -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();
......
Markdown is supported
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