From d1d51c5bb731ce2146b4b6a997b99632de32c082 Mon Sep 17 00:00:00 2001 From: Simon Martin Date: Sat, 18 Jul 2015 23:52:41 +0200 Subject: [PATCH] Added unit test involving function reference for TemplateSimplifier::templateParameters. --- test/testsimplifytemplate.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/testsimplifytemplate.cpp b/test/testsimplifytemplate.cpp index fc056a4ce..219cc5515 100644 --- a/test/testsimplifytemplate.cpp +++ b/test/testsimplifytemplate.cpp @@ -1175,6 +1175,8 @@ private: ASSERT_EQUALS(1U, templateParameters(" x;")); ASSERT_EQUALS(0U, templateParameters(" x;")); // Invalid syntax ASSERT_EQUALS(2U, templateParameters(" x;")); + ASSERT_EQUALS(2U, templateParameters(" x;")); + ASSERT_EQUALS(3U, templateParameters(" x;")); TODO_ASSERT_EQUALS(1U, 0U, templateParameters(" x;")); // Mishandled valid syntax TODO_ASSERT_EQUALS(2U, 0U, templateParameters(" x;")); // Mishandled valid syntax }