Skip to content

Commit 08b82fe

Browse files
Update testsymboldatabase.cpp
1 parent af40d61 commit 08b82fe

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

test/testsymboldatabase.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,7 @@ class TestSymbolDatabase : public TestFixture {
532532
TEST_CASE(findFunction58); // #13310
533533
TEST_CASE(findFunction59);
534534
TEST_CASE(findFunction60);
535+
TEST_CASE(findFunction61);
535536
TEST_CASE(findFunctionRef1);
536537
TEST_CASE(findFunctionRef2); // #13328
537538
TEST_CASE(findFunctionContainer);
@@ -8650,6 +8651,19 @@ class TestSymbolDatabase : public TestFixture {
86508651
ASSERT(fun && !fun->function());
86518652
}
86528653

8654+
void findFunction61() {
8655+
GET_SYMBOL_DB("namespace N {\n" // #13975
8656+
" struct B {\n"
8657+
" virtual ~B() = default;\n"
8658+
" };\n"
8659+
" struct D : B {\n"
8660+
" D() : B() {}\n"
8661+
" };\n"
8662+
"}\n");
8663+
const Token* fun = Token::findsimplematch(tokenizer.tokens(), "B ( ) {");
8664+
ASSERT(fun && !fun->function());
8665+
}
8666+
86538667
void findFunctionRef1() {
86548668
GET_SYMBOL_DB("struct X {\n"
86558669
" const std::vector<int> getInts() const & { return mInts; }\n"

0 commit comments

Comments
 (0)