summaryrefslogtreecommitdiff
path: root/tests/test_cpp_domain.py
diff options
context:
space:
mode:
authorshimizukawa <shimizukawa@gmail.com>2012-11-28 15:49:06 +0900
committershimizukawa <shimizukawa@gmail.com>2012-11-28 15:49:06 +0900
commit4eca27e2f8e6f69a57ff3f6c2c5c8908ae199e95 (patch)
tree01f7ed48881d490f3d2eb5f19c53353c042143a4 /tests/test_cpp_domain.py
parente26f6807079e2b2e9f30a47425977489ca661087 (diff)
downloadsphinx-4eca27e2f8e6f69a57ff3f6c2c5c8908ae199e95.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 bd8aafa7..dae91aed 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