diff options
| author | Jakob Lykke Andersen <Jakob@caput.dk> | 2017-12-04 09:44:29 +0100 |
|---|---|---|
| committer | Jakob Lykke Andersen <Jakob@caput.dk> | 2017-12-04 22:38:37 +0100 |
| commit | f3b440777bb75496e73c1869011aca3d1d1d1ac2 (patch) | |
| tree | ffa7faeb1d786f8de53c05e4bce79ae8e32f8104 /tests/test_domain_cpp.py | |
| parent | 0ff217e1b277db4d93a0f25e03ec5add0d570586 (diff) | |
| download | sphinx-git-f3b440777bb75496e73c1869011aca3d1d1d1ac2.tar.gz | |
C++, support explicit member instantiations
See michaeljones/breathe#325
Diffstat (limited to 'tests/test_domain_cpp.py')
| -rw-r--r-- | tests/test_domain_cpp.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_domain_cpp.py b/tests/test_domain_cpp.py index 4183fa471..f3f0037f5 100644 --- a/tests/test_domain_cpp.py +++ b/tests/test_domain_cpp.py @@ -561,6 +561,13 @@ def test_templates(): check('concept', 'template<typename ...Pack> Numerics = (... && Numeric<Pack>)', {2:'IDpE8Numerics'}) + # explicit specializations of members + check('member', 'template<> int A<int>::a', {2:'IEN1AIiE1aE'}) + check('member', 'template int A<int>::a', {2: 'IEN1AIiE1aE'}, + output='template<> int A<int>::a') # same as above + check('member', 'template<> template<> int A<int>::B<int>::b', {2:'IEIEN1AIiE1BIiE1bE'}) + check('member', 'template int A<int>::B<int>::b', {2: 'IEIEN1AIiE1BIiE1bE'}, + output='template<> template<> int A<int>::B<int>::b') # same as above def test_template_args(): |
