Tokenizer; Add test for c++14 lambda expression 'lambda=[value=1]{...}'

This commit is contained in:
Daniel Marjamäki 2021-04-16 15:18:02 +02:00
parent 11f828a669
commit c98afa83fd
1 changed files with 2 additions and 0 deletions

View File

@ -5847,6 +5847,8 @@ private:
ASSERT_EQUALS("b{[{ stdunique_ptr::0nullptrnullptr:?{", testAst("auto b{[] { std::unique_ptr<void *>{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() {