summaryrefslogtreecommitdiff
path: root/tests/test_cpp_domain.py
diff options
context:
space:
mode:
authorTakayuki Shimizukawa <shimizukawa@gmail.com>2012-11-28 15:49:06 +0900
committerTakayuki Shimizukawa <shimizukawa@gmail.com>2012-11-28 15:49:06 +0900
commitf24b1998f22b0578bc107abc7b6a44de56e90dfe (patch)
tree01f7ed48881d490f3d2eb5f19c53353c042143a4 /tests/test_cpp_domain.py
parent4e715ff0bf89d6f1dc557e22280369e7002d6a4c (diff)
downloadsphinx-git-f24b1998f22b0578bc107abc7b6a44de56e90dfe.tar.gz
fix: cpp domain parser cannot parse 'static constexpr' declarations. closes #1038
Diffstat (limited to 'tests/test_cpp_domain.py')
-rw-r--r--tests/test_cpp_domain.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_cpp_domain.py b/tests/test_cpp_domain.py
index bd8aafa76..dae91aed9 100644
--- a/tests/test_cpp_domain.py
+++ b/tests/test_cpp_domain.py
@@ -60,6 +60,9 @@ def test_type_definitions():
x = 'constexpr int get_value()'
assert unicode(parse('function', x)) == x
+ x = 'static constexpr int get_value()'
+ assert unicode(parse('function', x)) == x
+
x = 'int get_value() const noexcept'
assert unicode(parse('function', x)) == x