Skip to content

Commit

Permalink
Update testsymboldatabase.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Apr 4, 2024
1 parent 1515139 commit e7e7d52
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/testsymboldatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5845,6 +5845,16 @@ class TestSymbolDatabase : public TestFixture {
const Token* r = Token::findsimplematch(q, "r");
ASSERT(r && !r->isIncompleteVar());
}
{
GET_SYMBOL_DB("void f() {\n" // #12571
" auto g = []() -> std::string* {\n"
" return nullptr;\n"
" };\n"
"}\n");
ASSERT(db && errout_str().empty());
const Token* s = Token::findsimplematch(tokenizer.tokens(), "string");
ASSERT(s && !s->isIncompleteVar());
}
}

void enum1() {
Expand Down

0 comments on commit e7e7d52

Please sign in to comment.