From c5b81c6a791002d042b40b602bfb3aa40175b959 Mon Sep 17 00:00:00 2001 From: Robert Reif Date: Fri, 22 Apr 2011 21:23:40 -0400 Subject: [PATCH] add another test case for #2614 (missing varid on function parameter) --- test/testtokenize.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/test/testtokenize.cpp b/test/testtokenize.cpp index e0874b63a..af5afd2a8 100644 --- a/test/testtokenize.cpp +++ b/test/testtokenize.cpp @@ -2885,6 +2885,23 @@ private: "2: x ( a * b@1 * c@3 , 10 ) ;\n" "3: }\n"); TODO_ASSERT_EQUALS(expected2, actual2, tokenizeDebugListing(code2)); + + const std::string code3("class Nullpointer : public ExecutionPath\n" + " {\n" + " Nullpointer(Check *c, const unsigned int id, const std::string &name)\n" + " : ExecutionPath(c, id)\n" + " {\n" + " }\n" + "}\n"); + const std::string expected3("\n\n##file 0\n" + "1: class Nullpointer : public ExecutionPath\n" + "2: {\n" + "3: Nullpointer ( Check * c@1 , const int id@2 , const std :: string & name@3 )\n" + "4: : ExecutionPath ( c@1 , id@2 )\n" + "5: {\n" + "6: }\n" + "7: }\n"); + ASSERT_EQUALS(expected3, tokenizeDebugListing(code3)); } void varidFunctionCall1()