diff options
author | David Schulz <david.schulz@qt.io> | 2017-03-29 12:31:38 +0200 |
---|---|---|
committer | David Schulz <david.schulz@qt.io> | 2017-03-30 13:37:53 +0000 |
commit | 4e4b5833dafcadedc552a69b28e6eb27ecb33bdc (patch) | |
tree | 74022f0b5526ef14576c954aec574ca5e2ff36a6 /tests | |
parent | 7ff7aefeb3b6e0dfcde872f8667f921ebc448f2d (diff) | |
download | qt-creator-4e4b5833dafcadedc552a69b28e6eb27ecb33bdc.tar.gz |
Debugger: Fix QFlags dumper for cdb
Also adding a test covering this dumper.
Change-Id: I491dd87e52f65bf3faf21d81436f264507bf0b51
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
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", |