forked from qt-creator/qt-creator
Debugger: Add one more enum dumper autotest
I cannot reproduce the issue from the bug report anymore, but having a test for it should not hurt. Task-number: QTCREATORBUG-18529 Change-Id: If7464e45c14bbe316bf7ed1c68ea1f2692093005 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -5336,6 +5336,22 @@ void tst_Dumpers::dumper_data()
|
||||
+ Check("fbad", "(unknown:24) (24)", "Flags");
|
||||
|
||||
|
||||
QTest::newRow("EnumInClass")
|
||||
<< Data("struct E {\n"
|
||||
" enum Enum1 { a1, b1, c1 };\n"
|
||||
" typedef enum Enum2 { a2, b2, c2 } Enum2;\n"
|
||||
" typedef enum { a3, b3, c3 } Enum3;\n"
|
||||
" Enum1 e1 = Enum1(c1 | b1);\n"
|
||||
" Enum2 e2 = Enum2(c2 | b2);\n"
|
||||
" Enum3 e3 = Enum3(c3 | b3);\n"
|
||||
"};\n",
|
||||
"E e;\n")
|
||||
+ GdbEngine
|
||||
+ Check("e.e1", "E::b1 | E::c1 (0x0003)", "E::Enum1")
|
||||
+ Check("e.e2", "E::b2 | E::c2 (0x0003)", "E::Enum2")
|
||||
+ Check("e.e3", "E::b3 | E::c3 (0x0003)", "E::Enum3");
|
||||
|
||||
|
||||
QTest::newRow("Array")
|
||||
<< Data("",
|
||||
"double a1[3][3];\n"
|
||||
|
||||
Reference in New Issue
Block a user