Skip to content

Commit 28ba40b

Browse files
committed
add test
1 parent 2c2342f commit 28ba40b

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

test/testsymboldatabase.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,8 @@ class TestSymbolDatabase : public TestFixture {
622622
TEST_CASE(dumpFriend); // Check if isFriend added to dump file
623623

624624
TEST_CASE(smartPointerLookupCtor); // #13719);
625+
626+
TEST_CASE(userDefinedLiteral);
625627
}
626628

627629
void array() {
@@ -11317,6 +11319,15 @@ class TestSymbolDatabase : public TestFixture {
1131711319

1131811320
ASSERT(db);
1131911321
}
11322+
11323+
void userDefinedLiteral() {
11324+
GET_SYMBOL_DB("_ 1p;");
11325+
const Token *x = Token::findsimplematch(tokenizer.tokens(), "1p");
11326+
ASSERT(x);
11327+
ASSERT(!x->varId());
11328+
ASSERT(!x->variable());
11329+
}
11330+
1132011331
};
1132111332

1132211333
REGISTER_TEST(TestSymbolDatabase)

0 commit comments

Comments
 (0)