diff --git a/cfg/qt.cfg b/cfg/qt.cfg
index b1b90d86b..d5e3ebd71 100644
--- a/cfg/qt.cfg
+++ b/cfg/qt.cfg
@@ -1316,6 +1316,7 @@
+
@@ -1327,6 +1328,7 @@
+
diff --git a/test/cfg/qt.cpp b/test/cfg/qt.cpp
index 491dae967..54be3d2de 100644
--- a/test/cfg/qt.cpp
+++ b/test/cfg/qt.cpp
@@ -46,6 +46,14 @@ void validCode(int * pIntPtr)
if (pIntPtr != Q_NULLPTR) {
*pIntPtr = 5;
}
+
+ if (pIntPtr && *pIntPtr == 1) {
+ forever {
+ }
+ } else if (pIntPtr && *pIntPtr == 2) {
+ Q_FOREVER {
+ }
+ }
}
void ignoredReturnValue()