Skip to content

Commit 6b6136b

Browse files
committed
add test
1 parent 8c14fc7 commit 6b6136b

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

test/testsymboldatabase.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10164,6 +10164,15 @@ class TestSymbolDatabase : public TestFixture {
1016410164
ASSERT(tok);
1016510165
TODO_ASSERT(tok->valueType() && "container(std :: string|wstring|u16string|u32string)" == tok->valueType()->str());
1016610166
}
10167+
{
10168+
GET_SYMBOL_DB("void f() {\n"
10169+
" int &&x = 0;\n"
10170+
"}\n");
10171+
10172+
const Token* tok = Token::findsimplematch(tokenizer.tokens(), "&&");
10173+
ASSERT(tok);
10174+
ASSERT_EQUALS(static_cast<const ValueType*>(nullptr), tok->valueType());
10175+
}
1016710176
}
1016810177

1016910178
void valueTypeThis() {

0 commit comments

Comments
 (0)