Added unit test involving function reference for TemplateSimplifier::templateParameters.

This commit is contained in:
Simon Martin 2015-07-18 23:52:41 +02:00
parent ce7e879460
commit d1d51c5bb7
1 changed files with 2 additions and 0 deletions

View File

@ -1175,6 +1175,8 @@ private:
ASSERT_EQUALS(1U, templateParameters("<class... T> x;"));
ASSERT_EQUALS(0U, templateParameters("<class, typename T...> x;")); // Invalid syntax
ASSERT_EQUALS(2U, templateParameters("<class, typename... T> x;"));
ASSERT_EQUALS(2U, templateParameters("<int(&)(), class> x;"));
ASSERT_EQUALS(3U, templateParameters("<char, int(*)(), bool> x;"));
TODO_ASSERT_EQUALS(1U, 0U, templateParameters("<int...> x;")); // Mishandled valid syntax
TODO_ASSERT_EQUALS(2U, 0U, templateParameters("<class, typename...> x;")); // Mishandled valid syntax
}