diff options
author | Takayuki Shimizukawa <shimizukawa@gmail.com> | 2012-11-28 15:26:44 +0900 |
---|---|---|
committer | Takayuki Shimizukawa <shimizukawa@gmail.com> | 2012-11-28 15:26:44 +0900 |
commit | 96779ffed80d9a276905ddaa4210d9b190291231 (patch) | |
tree | 1c60035bf76b2f2d6d449893673bd9cd9e468ccf /tests/test_cpp_domain.py | |
parent | 4e715ff0bf89d6f1dc557e22280369e7002d6a4c (diff) | |
download | sphinx-git-96779ffed80d9a276905ddaa4210d9b190291231.tar.gz |
fix: cpp domain parser cannot parse a const type with a modifier. closes #1041
Diffstat (limited to 'tests/test_cpp_domain.py')
-rw-r--r-- | tests/test_cpp_domain.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_cpp_domain.py b/tests/test_cpp_domain.py index bd8aafa76..64a52aa96 100644 --- a/tests/test_cpp_domain.py +++ b/tests/test_cpp_domain.py @@ -43,6 +43,15 @@ def test_type_definitions(): x = 'int printf(const char* fmt, ...)' assert unicode(parse('function', x)) == x + x = 'int foo(const unsigned int j)' + assert unicode(parse('function', x)) == x + + x = 'int foo(const unsigned int const j)' + assert unicode(parse('function', x)) == x + + x = 'int foo(const int* const ptr)' + assert unicode(parse('function', x)) == x + x = 'std::vector<std::pair<std::string, long long>> module::blah' assert unicode(parse('type_object', x)) == x |