Commit 40ace549 authored by hjk's avatar hjk Committed by hjk

debugger: add semi-automated test for pass-by-reference

Change-Id: Ib3acdef95477180da218f17d441b230c9c894f74
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 881f2170
......@@ -4588,6 +4588,19 @@ namespace basic {
dummyStatement(&a, &b, &c, &d);
}
void testReference3(const QString &a)
{
const QString &b = a;
typedef QString &Ref;
const Ref d = const_cast<Ref>(a);
BREAK_HERE;
// Check a "hello" QString.
// Check b "hello" QString.
// Check d "hello" basic::Ref.
// Continue.
dummyStatement(&a, &b, &d);
}
void testLongEvaluation1()
{
QDateTime time = QDateTime::currentDateTime();
......@@ -4748,6 +4761,7 @@ namespace basic {
{
testReference1();
testReference2();
testReference3("hello");
testArray1();
testArray2();
testArray3();
......
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