File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -424,6 +424,7 @@ class TestSymbolDatabase : public TestFixture {
424
424
TEST_CASE (symboldatabase106);
425
425
TEST_CASE (symboldatabase107);
426
426
TEST_CASE (symboldatabase108);
427
+ TEST_CASE (symboldatabase109); // #13553
427
428
428
429
TEST_CASE (createSymbolDatabaseFindAllScopes1);
429
430
TEST_CASE (createSymbolDatabaseFindAllScopes2);
@@ -5710,6 +5711,18 @@ class TestSymbolDatabase : public TestFixture {
5710
5711
}
5711
5712
}
5712
5713
5714
+ void symboldatabase109 () { // #13553
5715
+ GET_SYMBOL_DB (" extern \" C\" {\n "
5716
+ " class Base {\n "
5717
+ " public:\n "
5718
+ " virtual void show(void) = 0;\n "
5719
+ " };\n "
5720
+ " }\n " );
5721
+ const Token *f = db ? Token::findsimplematch (tokenizer.tokens (), " show" ) : nullptr ;
5722
+ ASSERT (f != nullptr );
5723
+ ASSERT (f && f->function () && f->function ()->hasVirtualSpecifier ());
5724
+ }
5725
+
5713
5726
void createSymbolDatabaseFindAllScopes1 () {
5714
5727
GET_SYMBOL_DB (" void f() { union {int x; char *p;} a={0}; }" );
5715
5728
ASSERT (db->scopeList .size () == 3 );
You can’t perform that action at this time.
0 commit comments