summaryrefslogtreecommitdiff
path: root/tests/auto/debugger/tst_dumpers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/debugger/tst_dumpers.cpp')
-rw-r--r--tests/auto/debugger/tst_dumpers.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/auto/debugger/tst_dumpers.cpp b/tests/auto/debugger/tst_dumpers.cpp
index 6fe3d99bdd..8f2f9087af 100644
--- a/tests/auto/debugger/tst_dumpers.cpp
+++ b/tests/auto/debugger/tst_dumpers.cpp
@@ -6846,6 +6846,25 @@ void tst_Dumpers::dumper_data()
+ Check("arr.2.baz", "5", "int");
+ QTest::newRow("StringDisplay")
+ << Data("#include <string.h>\n"
+ "struct QtcDumperTest_String"
+ "{\n"
+ " char *first;\n"
+ " const char *second = \"second\";\n"
+ " const char third[6] = \"third\";\n"
+ " QtcDumperTest_String()\n"
+ " {\n"
+ " first = new char[6];\n"
+ " strcpy(first, \"first\");\n"
+ " }\n"
+ " ~QtcDumperTest_String() { delete[] first; }\n"
+ "};\n\n",
+ "QtcDumperTest_String str; unused(&str);\n")
+ + Cxx11Profile()
+ + Check("str", "first, second, third", "QtcDumperTest_String");
+
+
QTest::newRow("UndefinedStaticMembers")
<< Data("struct Foo { int a = 15; static int b; }; \n",
"Foo f; unused(&f);\n")