summaryrefslogtreecommitdiff
path: root/tests/manual/debugger
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/debugger')
-rw-r--r--tests/manual/debugger/simple/simple_test_app.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/manual/debugger/simple/simple_test_app.cpp b/tests/manual/debugger/simple/simple_test_app.cpp
index ba55395eb3..4cb223d0c7 100644
--- a/tests/manual/debugger/simple/simple_test_app.cpp
+++ b/tests/manual/debugger/simple/simple_test_app.cpp
@@ -3068,6 +3068,24 @@ namespace stdptr {
} // namespace stdptr
+namespace lambda {
+
+ void testLambda()
+ {
+#ifdef USE_CXX11
+ std::string x;
+ auto f = [&] () -> const std::string & {
+ int z = x.size();
+ return x;
+ };
+ auto c = f();
+ BREAK_HERE;
+ dummyStatement(&x, &f, &c);
+#endif
+ }
+
+} // namespace lambda
+
namespace stdset {
void testStdSetInt()
@@ -6859,6 +6877,7 @@ int main(int argc, char *argv[])
stdstring::testStdString();
stdvector::testStdVector();
stdptr::testStdPtr();
+ lambda::testLambda();
qbytearray::testQByteArray();
qdatetime::testDateTime();