diff --git a/test/testsymboldatabase.cpp b/test/testsymboldatabase.cpp index 98e80671e..b63cc4088 100644 --- a/test/testsymboldatabase.cpp +++ b/test/testsymboldatabase.cpp @@ -63,6 +63,7 @@ private: TEST_CASE(test_isVariableDeclarationIdentifiesArray); TEST_CASE(test_isVariableDeclarationIdentifiesOfArrayPointers); TEST_CASE(isVariableDeclarationIdentifiesTemplatedPointerVariable); + TEST_CASE(isVariableDeclarationIdentifiesTemplatedPointerToPointerVariable); TEST_CASE(isVariableDeclarationIdentifiesTemplatedVariable); TEST_CASE(isVariableDeclarationIdentifiesTemplatedVariableIterator); TEST_CASE(isVariableDeclarationIdentifiesNestedTemplateVariable); @@ -223,6 +224,22 @@ private: ASSERT_EQUALS("set", typetok->str()); } + void isVariableDeclarationIdentifiesTemplatedPointerToPointerVariable() + { + reset(); + givenACodeSampleToTokenize var("std::deque*** ints;"); + bool result = si.isVariableDeclaration(var.tokens(), vartok, typetok); + TODO_ASSERT_EQUALS(true, result); + if (NULL != vartok) + { + TODO_ASSERT_EQUALS("ints", vartok->str()); + } + if (NULL != typetok) + { + TODO_ASSERT_EQUALS("deque", typetok->str()); + } + } + void isVariableDeclarationIdentifiesTemplatedVariable() { reset();