summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2017-03-30 20:18:47 +0200
committerhjk <hjk@qt.io>2017-04-19 06:01:18 +0000
commit283bce734373b562340de016ac08d17b318c7b67 (patch)
tree06e4e8bcf83bde0a5884805959ce7036fb0416f7 /tests
parentb3771305095bfaa2c23528f2092cb2edcaf11a47 (diff)
downloadqt-creator-283bce734373b562340de016ac08d17b318c7b67.tar.gz
Debugger: Add a qfloat16 dumper
Change-Id: Ibc43da06c195d916296f09740a1111a2586443b8 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/debugger/tst_dumpers.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/debugger/tst_dumpers.cpp b/tests/auto/debugger/tst_dumpers.cpp
index 586fb9c124..aa57ee7fe9 100644
--- a/tests/auto/debugger/tst_dumpers.cpp
+++ b/tests/auto/debugger/tst_dumpers.cpp
@@ -5244,6 +5244,18 @@ void tst_Dumpers::dumper_data()
+ Check("s32s", "-2147483648", TypeDef("int", "@qint32"));
+ QTest::newRow("Float")
+ << Data("#include <QFloat16>\n",
+ "qfloat16 f1 = 45.3f; unused(&f1);\n"
+ "qfloat16 f2 = 45.1f; unused(&f2);\n")
+ + CoreProfile()
+ + QtVersion(0x50900)
+ // Using numpy:
+ // + Check("f1", "45.281", "@qfloat16")
+ // + Check("f2", "45.094", "@qfloat16");
+ + Check("f1", "45.28125", "@qfloat16")
+ + Check("f2", "45.09375", "@qfloat16");
+
QTest::newRow("Enum")
<< Data("\n"