We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb61706 commit 5d1e96cCopy full SHA for 5d1e96c
1 file changed
test/testsymboldatabase.cpp
@@ -624,6 +624,8 @@ class TestSymbolDatabase : public TestFixture {
624
TEST_CASE(smartPointerLookupCtor); // #13719);
625
626
TEST_CASE(stdintFunction);
627
+
628
+ TEST_CASE(userDefinedLiteral);
629
}
630
631
void array() {
@@ -11327,6 +11329,14 @@ class TestSymbolDatabase : public TestFixture {
11327
11329
ASSERT_EQUALS(tok->next()->valueType()->sign, ValueType::Sign::UNSIGNED);
11328
11330
ASSERT_EQUALS(tok->next()->valueType()->type, ValueType::Type::INT);
11331
11332
11333
+ void userDefinedLiteral() {
11334
+ GET_SYMBOL_DB("_ 1p;");
11335
+ const Token *x = Token::findsimplematch(tokenizer.tokens(), "1p");
11336
+ ASSERT(x);
11337
+ ASSERT(!x->varId());
11338
+ ASSERT(!x->variable());
11339
+ }
11340
};
11341
11342
REGISTER_TEST(TestSymbolDatabase)
0 commit comments