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/moc | |
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/moc')
-rw-r--r-- | tests/auto/moc/tst_moc.cpp | 9 |
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" |