diff --git a/cfg/qt.cfg b/cfg/qt.cfg
index 8346ff281..92a7741f6 100644
--- a/cfg/qt.cfg
+++ b/cfg/qt.cfg
@@ -4969,6 +4969,8 @@
+
+
diff --git a/test/cfg/qt.cpp b/test/cfg/qt.cpp
index a35b9ac24..c8ef06ef2 100644
--- a/test/cfg/qt.cpp
+++ b/test/cfg/qt.cpp
@@ -379,7 +379,7 @@ void MacroTest2_test()
#endif
}
-void validCode(int * pIntPtr)
+void validCode(int * pIntPtr, QString & qstrArg)
{
if (QFile::exists("test")) {
}
@@ -404,6 +404,19 @@ void validCode(int * pIntPtr)
Q_DECLARE_LOGGING_CATEGORY(logging_category_test);
QT_FORWARD_DECLARE_CLASS(forwardDeclaredClass);
QT_FORWARD_DECLARE_STRUCT(forwardDeclaredStruct);
+
+ //#9650
+ QString qstr1(qstrArg);
+ if (qstr1.length() == 1) {
+ } else {
+ qstr1.chop(1);
+ if (qstr1.length() == 1) {}
+ }
+ if (qstr1.length() == 1) {
+ } else {
+ qstr1.remove(1);
+ if (qstr1.length() == 1) {}
+ }
}
void ignoredReturnValue()