diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2010-03-26 10:26:42 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2010-03-26 11:26:12 (GMT) |
commit | ff870dbf9106f2bbb2cf64f5aa35fc5917e5f4f2 (patch) | |
tree | 2430b6a5967ff0b8c2ef7ff4d90e5cdf8c840be4 /tests/auto/qmetaobject/tst_qmetaobject.cpp | |
parent | df0e6759e8ebc1053f951d3a5398a41156e91913 (diff) | |
download | Qt-ff870dbf9106f2bbb2cf64f5aa35fc5917e5f4f2.zip Qt-ff870dbf9106f2bbb2cf64f5aa35fc5917e5f4f2.tar.gz Qt-ff870dbf9106f2bbb2cf64f5aa35fc5917e5f4f2.tar.bz2 |
QMetaObject::normalizeType: Fix parsing of type which contains "const" in names
Regression since b881d8fb99972f1bd04ab4c84843cc8d43ddbeed
Task-number: QTBUG-9354
Reviewed-by: Kent Hansen
Diffstat (limited to 'tests/auto/qmetaobject/tst_qmetaobject.cpp')
-rw-r--r-- | tests/auto/qmetaobject/tst_qmetaobject.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/qmetaobject/tst_qmetaobject.cpp b/tests/auto/qmetaobject/tst_qmetaobject.cpp index e81607e..c0b1303 100644 --- a/tests/auto/qmetaobject/tst_qmetaobject.cpp +++ b/tests/auto/qmetaobject/tst_qmetaobject.cpp @@ -740,6 +740,14 @@ void tst_QMetaObject::normalizedType_data() QTest::newRow("template7") << "QList<QList<int> >" << "QList<QList<int> >"; QTest::newRow("value1") << "const QString &" << "QString"; QTest::newRow("value2") << "QString const &" << "QString"; + QTest::newRow("constInName1") << "constconst" << "constconst"; + QTest::newRow("constInName2") << "constconst*" << "constconst*"; + QTest::newRow("constInName3") << "const constconst&" << "constconst"; + QTest::newRow("constInName4") << "constconst const*const" << "constconst*const"; + QTest::newRow("class") << "const class foo&" << "foo"; + QTest::newRow("struct") << "const struct foo*" << "const foo*"; + QTest::newRow("struct2") << "struct foo const*" << "const foo*"; + QTest::newRow("enum") << "enum foo" << "foo"; } void tst_QMetaObject::normalizedType() |