File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -5727,6 +5727,24 @@ class TestSymbolDatabase : public TestFixture {
5727
5727
ASSERT(it->isDefault());
5728
5728
ASSERT_EQUALS(it->type, Function::Type::eDestructor);
5729
5729
}
5730
+ {
5731
+ GET_SYMBOL_DB("struct S {\n" // #13637
5732
+ " ~S();\n"
5733
+ "};\n"
5734
+ "S::~S() = delete;\n");
5735
+ ASSERT_EQUALS(db->scopeList.size(), 2);
5736
+ auto scope = db->scopeList.begin();
5737
+ ASSERT(!scope->functionOf);
5738
+ ++scope;
5739
+ ASSERT_EQUALS(scope->className, "S");
5740
+ ASSERT_EQUALS(scope->functionList.size(), 1);
5741
+ auto it = scope->functionList.begin();
5742
+ ASSERT_EQUALS(it->name(), "S");
5743
+ ASSERT_EQUALS(it->tokenDef->linenr(), 2);
5744
+ ASSERT(it->isDelete());
5745
+ ASSERT(!it->isDefault());
5746
+ ASSERT_EQUALS(it->type, Function::Type::eDestructor);
5747
+ }
5730
5748
}
5731
5749
5732
5750
void symboldatabase109() { // #13553
You can’t perform that action at this time.
0 commit comments