diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/debugger/tst_dumpers.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/debugger/tst_dumpers.cpp b/tests/auto/debugger/tst_dumpers.cpp index 7f5cd801f8..2bfb47e2b6 100644 --- a/tests/auto/debugger/tst_dumpers.cpp +++ b/tests/auto/debugger/tst_dumpers.cpp @@ -1895,6 +1895,17 @@ void tst_Dumpers::dumper_data() + Check("c", "120", "@QChar"); + QTest::newRow("QFlags") + << Data("#include <QFlags>\n" + "enum Foo { a = 0x1, b = 0x2 };\n" + "Q_DECLARE_FLAGS(FooFlags, Foo)\n" + "Q_DECLARE_OPERATORS_FOR_FLAGS(FooFlags)\n", + "FooFlags f1(a);\n" + "FooFlags f2(a | b);\n") + + CoreProfile() + + Check("f1", "a (1)", TypeDef("QFlags<enum Foo>", "FooFlags")) + + Check("f2", "(a | b) (3)", "FooFlags") % GdbEngine; + QTest::newRow("QDateTime") << Data("#include <QDateTime>\n", |