Commit 39db90c8 authored by hjk's avatar hjk
Browse files

Debugger: Fix dynamicReference autotests

The recent breakage was caused by accidentally moving the struct
definition into main() in combination with the GDB bug mentioned
at http://sourceware.org/bugzilla/show_bug.cgi?id=14235

 (11171)

Change-Id: I9a94b5c9297e7553962290872f0c29c38cee56e5
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent b45fdfe3
......@@ -3504,12 +3504,12 @@ void tst_Dumpers::dumper_data()
QTest::newRow("DynamicReference")
<< Data("struct BaseClass { virtual ~BaseClass() {} };\n"
"struct DerivedClass : BaseClass {};\n"
"struct DerivedClass : BaseClass {};\n",
"DerivedClass d;\n"
"BaseClass *b1 = &d;\n"
"BaseClass &b2 = d;\n"
"unused(&b1, &b2);\n")
% CheckType("b1", "DerivedClass *")
"unused(&d, &b1, &b2);\n")
% CheckType("b1", "DerivedClass") // autoderef
% CheckType("b2", "DerivedClass &");
// QTest::newRow("LongEvaluation1")
......@@ -4135,13 +4135,12 @@ void tst_Dumpers::dumper_data()
"{\n"
" Derived() : b(42) {}\n"
" int b;\n"
"};\n"
"};\n",
"Derived d;\n"
"Base *b = &d;\n"
"unused(&d, &b);\n")
% CheckType("b.[vptr]", "")
% Check("b.a", "21", "int")
% Check("b.b", "42", "int");
% Check("b.@1.a", "a", "21", "int")
% Check("b.b", "b", "42", "int");
QTest::newRow("valist")
......
Supports Markdown
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