Merge pull request #624 from simartin/ticket_6601_template_parameters
Added unit test involving function reference for TemplateSimplifier::templateParameters
This commit is contained in:
commit
f1f46611d6
|
@ -1175,6 +1175,8 @@ private:
|
||||||
ASSERT_EQUALS(1U, templateParameters("<class... T> x;"));
|
ASSERT_EQUALS(1U, templateParameters("<class... T> x;"));
|
||||||
ASSERT_EQUALS(0U, templateParameters("<class, typename T...> x;")); // Invalid syntax
|
ASSERT_EQUALS(0U, templateParameters("<class, typename T...> x;")); // Invalid syntax
|
||||||
ASSERT_EQUALS(2U, templateParameters("<class, typename... T> x;"));
|
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(1U, 0U, templateParameters("<int...> x;")); // Mishandled valid syntax
|
||||||
TODO_ASSERT_EQUALS(2U, 0U, templateParameters("<class, typename...> x;")); // Mishandled valid syntax
|
TODO_ASSERT_EQUALS(2U, 0U, templateParameters("<class, typename...> x;")); // Mishandled valid syntax
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue