diff --git a/test/testtokenize.cpp b/test/testtokenize.cpp index 38243ff39..815303ccf 100644 --- a/test/testtokenize.cpp +++ b/test/testtokenize.cpp @@ -5847,6 +5847,8 @@ private: ASSERT_EQUALS("b{[{ stdunique_ptr::0nullptrnullptr:?{", testAst("auto b{[] { std::unique_ptr{0 ? nullptr : nullptr}; }};")); ASSERT_EQUALS("b{[=", testAst("void a() { [b = [] { ; }] {}; }")); + // Lambda capture expression (C++14) + ASSERT_EQUALS("a{b1=[= c2=", testAst("a = [b=1]{c=2;};")); } void astcase() {