Skip to content

Commit 899ddf6

Browse files
Update testtokenize.cpp
1 parent 32d7f79 commit 899ddf6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

test/testtokenize.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7994,6 +7994,12 @@ class TestTokenizer : public TestFixture {
79947994
"int main() { \n"
79957995
" takesFunc([func = [](S s) { return s.c; }] {});\n"
79967996
"}\n"));
7997+
7998+
ASSERT_NO_THROW(tokenizeAndStringify("void f() {\n" // #14256
7999+
" int i = 0;\n"
8000+
" auto x = [i] mutable {};\n"
8001+
"}\n"));
8002+
79978003
ignore_errout();
79988004
}
79998005
void checkIfCppCast() {

0 commit comments

Comments
 (0)