diff options
author | Christian Stenger <christian.stenger@qt.io> | 2018-10-30 11:20:07 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2018-11-06 11:26:05 +0000 |
commit | ace6708b88c4cf0c6bbba45b41de561ac6e4c52f (patch) | |
tree | 61ed730029ab6539d41d8ed77938a20e12a346da /tests | |
parent | 687d24b2907b98bf8ee3c2e4e3dc588f93e6c2ea (diff) | |
download | qt-creator-ace6708b88c4cf0c6bbba45b41de561ac6e4c52f.tar.gz |
Debugger: Fix display of null references
Fixes: QTCREATORBUG-21210
Change-Id: I529f38aad9b93707e09ffdd28885e46c2cfd158c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/debugger/tst_dumpers.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/auto/debugger/tst_dumpers.cpp b/tests/auto/debugger/tst_dumpers.cpp index 3084db31b5..ea90617b02 100644 --- a/tests/auto/debugger/tst_dumpers.cpp +++ b/tests/auto/debugger/tst_dumpers.cpp @@ -5757,7 +5757,11 @@ void tst_Dumpers::dumper_data() "const Foo &b4 = a4;\n" "typedef Foo &Ref4;\n" "const Ref4 d4 = const_cast<Ref4>(a4);\n" - "unused(&a4, &b4, &d4);\n") + "unused(&a4, &b4, &d4);\n" + + "int *q = 0;\n" + "int &qq = *q;\n" + "unused(&qq, &q);\n") + CoreProfile() + NoCdbEngine // The Cdb has no information about references @@ -5781,7 +5785,9 @@ void tst_Dumpers::dumper_data() + Check("b4", "", "Foo &") + Check("b4.a", "12", "int") //+ Check("d4", "\"hello\"", "Ref4"); FIXME: We get "Foo &" instead - + Check("d4.a", "12", "int"); + + Check("d4.a", "12", "int") + + + Check("qq", "<null reference>", "int &"); QTest::newRow("DynamicReference") << Data("struct BaseClass { virtual ~BaseClass() {} };\n" |