Skip to content

Commit 5d1e96c

Browse files
committed
add test
1 parent fb61706 commit 5d1e96c

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

test/testsymboldatabase.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,8 @@ class TestSymbolDatabase : public TestFixture {
624624
TEST_CASE(smartPointerLookupCtor); // #13719);
625625

626626
TEST_CASE(stdintFunction);
627+
628+
TEST_CASE(userDefinedLiteral);
627629
}
628630

629631
void array() {
@@ -11327,6 +11329,14 @@ class TestSymbolDatabase : public TestFixture {
1132711329
ASSERT_EQUALS(tok->next()->valueType()->sign, ValueType::Sign::UNSIGNED);
1132811330
ASSERT_EQUALS(tok->next()->valueType()->type, ValueType::Type::INT);
1132911331
}
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+
}
1133011340
};
1133111341

1133211342
REGISTER_TEST(TestSymbolDatabase)

0 commit comments

Comments
 (0)