summaryrefslogtreecommitdiff
path: root/tests/test_cpp_domain.py
diff options
context:
space:
mode:
authorArmin Ronacher <armin.ronacher@active-4.com>2011-09-22 10:33:15 +0200
committerArmin Ronacher <armin.ronacher@active-4.com>2011-09-22 10:33:15 +0200
commit55935bdd04aab5da256015b2af25ba0d842d89a0 (patch)
tree6f22d99caa9b1a75d82c1ef8ae251b6570d535e2 /tests/test_cpp_domain.py
parentbdf58164379a27fb902bf7693d416dde1a813878 (diff)
downloadsphinx-git-55935bdd04aab5da256015b2af25ba0d842d89a0.tar.gz
Be explicit about rvalue references.
Diffstat (limited to 'tests/test_cpp_domain.py')
-rw-r--r--tests/test_cpp_domain.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_cpp_domain.py b/tests/test_cpp_domain.py
index 3ca29b4ee..eb08c6085 100644
--- a/tests/test_cpp_domain.py
+++ b/tests/test_cpp_domain.py
@@ -49,6 +49,10 @@ def test_type_definitions():
assert unicode(parse('type_object', 'long long int foo')) == 'long long foo'
+ x = 'MyClass::MyClass(MyClass::MyClass&&)'
+ assert unicode(parse('function', x)) == x
+
+
def test_operators():
x = parse('function', 'void operator new [ ] ()')
assert unicode(x) == 'void operator new[]()'