diff options
author | Jakob Lykke Andersen <Jakob@caput.dk> | 2021-08-15 17:24:14 +0200 |
---|---|---|
committer | Jakob Lykke Andersen <Jakob@caput.dk> | 2021-08-20 18:17:42 +0200 |
commit | 73c1520923c76835ea17f9e87af14b51dc83f2c2 (patch) | |
tree | 9f95a480fa2259e7198cad0f28cf48982d7047a1 /tests/test_domain_cpp.py | |
parent | 5a3e119d5ef754f6f6232e4a10afdb409c9a8287 (diff) | |
download | sphinx-git-73c1520923c76835ea17f9e87af14b51dc83f2c2.tar.gz |
C++, fix parsing of defaulted fp function params
Diffstat (limited to 'tests/test_domain_cpp.py')
-rw-r--r-- | tests/test_domain_cpp.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_domain_cpp.py b/tests/test_domain_cpp.py index b1fffb89c..ede4a2531 100644 --- a/tests/test_domain_cpp.py +++ b/tests/test_domain_cpp.py @@ -639,6 +639,9 @@ def test_domain_cpp_ast_function_definitions(): # from #8960 check('function', 'void f(void (*p)(int, double), int i)', {2: '1fPFvidEi'}) + # from #9535 comment + check('function', 'void f(void (*p)(int) = &foo)', {2: '1fPFviE'}) + def test_domain_cpp_ast_operators(): check('function', 'void operator new()', {1: "new-operator", 2: "nwv"}) |