summaryrefslogtreecommitdiffstats
path: root/tests/auto/moc
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2010-03-26 10:26:42 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2010-03-26 11:26:12 (GMT)
commitff870dbf9106f2bbb2cf64f5aa35fc5917e5f4f2 (patch)
tree2430b6a5967ff0b8c2ef7ff4d90e5cdf8c840be4 /tests/auto/moc
parentdf0e6759e8ebc1053f951d3a5398a41156e91913 (diff)
downloadQt-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/moc')
-rw-r--r--tests/auto/moc/tst_moc.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/moc/tst_moc.cpp b/tests/auto/moc/tst_moc.cpp
index 8890a15..a56d842 100644
--- a/tests/auto/moc/tst_moc.cpp
+++ b/tests/auto/moc/tst_moc.cpp
@@ -1312,6 +1312,15 @@ public slots:
QString const returnConstString2( QString const s) { return s; }
};
+class QTBUG9354_constInName: public QObject
+{ Q_OBJECT
+public slots:
+ void slotChooseScientificConst0(struct science_constant const &) {};
+ void foo(struct science_const const &) {};
+ void foo(struct constconst const &) {};
+ void foo(struct constconst *) {};
+ void foo(struct const_ *) {};
+};
QTEST_APPLESS_MAIN(tst_Moc)
#include "tst_moc.moc"