From 63fa71e5ca89bb0e04ee1438f4fa889f23614667 Mon Sep 17 00:00:00 2001 From: chrchr Date: Mon, 19 Feb 2024 18:06:13 +0100 Subject: [PATCH] Add test for #11036 --- test/cfg/qt.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/cfg/qt.cpp b/test/cfg/qt.cpp index 7ebd54d76ba..5289fad0c7f 100644 --- a/test/cfg/qt.cpp +++ b/test/cfg/qt.cpp @@ -611,3 +611,10 @@ void dontCrashEstimateSize(const SEstimateSize& s) { QString q = s.get(); if (!q.isNull()) {} } + +bool knownConditionTrueFalse_QString_count(const QString& s) // #11036 +{ + if (!s.isEmpty() && s.count("abc") == 0) + return false; + return true; +}