diff -r dee5afe5301f -r 3f74d0d4af4c tests/auto/qicon/tst_qicon.cpp --- a/tests/auto/qicon/tst_qicon.cpp Mon Mar 15 12:43:09 2010 +0200 +++ b/tests/auto/qicon/tst_qicon.cpp Thu Apr 08 14:19:33 2010 +0300 @@ -86,8 +86,14 @@ private: QString oldCurrentDir; + + const static QIcon staticIcon; }; +// Creating an icon statically should not cause a crash. +// But we do not officially support this. See QTBUG-8666 +const QIcon tst_QIcon::staticIcon = QIcon::fromTheme("edit-find"); + void tst_QIcon::init() { QString srcdir(QLatin1String(SRCDIR));