Be explicit about rvalue references.

This commit is contained in:
Armin Ronacher
2011-09-22 10:33:15 +02:00
parent 860b410fbc
commit 6b96b10220
2 changed files with 18 additions and 2 deletions

View File

@@ -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[]()'