We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c2342f commit 28ba40bCopy full SHA for 28ba40b
1 file changed
test/testsymboldatabase.cpp
@@ -622,6 +622,8 @@ class TestSymbolDatabase : public TestFixture {
622
TEST_CASE(dumpFriend); // Check if isFriend added to dump file
623
624
TEST_CASE(smartPointerLookupCtor); // #13719);
625
+
626
+ TEST_CASE(userDefinedLiteral);
627
}
628
629
void array() {
@@ -11317,6 +11319,15 @@ class TestSymbolDatabase : public TestFixture {
11317
11319
11318
11320
ASSERT(db);
11321
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
11331
};
11332
11333
REGISTER_TEST(TestSymbolDatabase)
0 commit comments