summaryrefslogtreecommitdiff
path: root/tests/test_domain_cpp.py
diff options
context:
space:
mode:
authorJakob Lykke Andersen <Jakob@caput.dk>2020-03-25 13:08:09 +0100
committerJakob Lykke Andersen <Jakob@caput.dk>2020-03-25 13:08:09 +0100
commitc9fb5ab9ad6c3512899e279c8162cf76bff85b68 (patch)
treef893b95bcdde5f8eb0068898077154d7e77d818a /tests/test_domain_cpp.py
parentf9d36008e1d2260422945a612851ae51f2a1b4e8 (diff)
downloadsphinx-git-c9fb5ab9ad6c3512899e279c8162cf76bff85b68.tar.gz
C++, support pack expansion in template argument lists
Diffstat (limited to 'tests/test_domain_cpp.py')
-rw-r--r--tests/test_domain_cpp.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_domain_cpp.py b/tests/test_domain_cpp.py
index 38b1d141e..2faa3d4ea 100644
--- a/tests/test_domain_cpp.py
+++ b/tests/test_domain_cpp.py
@@ -629,6 +629,12 @@ def test_class_definitions():
{2: 'I0E7has_varI1TNSt6void_tIDTadN1T3varEEEEE'})
+ check('class', 'template<typename ...Ts> T<int (*)(Ts)...>',
+ {2: 'IDpE1TIJPFi2TsEEE'})
+ check('class', 'template<int... Is> T<(Is)...>',
+ {2: 'I_DpiE1TIJX(Is)EEE', 3: 'I_DpiE1TIJX2IsEEE'})
+
+
def test_union_definitions():
check('union', 'A', {2: "1A"})