aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto-unexpected-qstringbuilder/main.cpp_fixed.cpp.expected
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto-unexpected-qstringbuilder/main.cpp_fixed.cpp.expected')
-rw-r--r--tests/auto-unexpected-qstringbuilder/main.cpp_fixed.cpp.expected8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto-unexpected-qstringbuilder/main.cpp_fixed.cpp.expected b/tests/auto-unexpected-qstringbuilder/main.cpp_fixed.cpp.expected
index 3f27fb78..aa5640d6 100644
--- a/tests/auto-unexpected-qstringbuilder/main.cpp_fixed.cpp.expected
+++ b/tests/auto-unexpected-qstringbuilder/main.cpp_fixed.cpp.expected
@@ -7,5 +7,13 @@ void test()
const QString s2 = "tests/" % QString::fromLatin1("foo"); // Warning
const QString s3 = "tests/" + QString::fromLatin1("foo"); // OK
const QString s4 = "tests/" % QString::fromLatin1("foo"); // OK
+
+ [] {
+ return "tests/" % QString::fromLatin1("foo"); // Warn
+ };
+
+ [] {
+ return QString(); // OK
+ };
}