diff options
Diffstat (limited to 'tests/test_cpp_domain.py')
-rw-r--r-- | tests/test_cpp_domain.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/test_cpp_domain.py b/tests/test_cpp_domain.py index 2168d7e44..039104bda 100644 --- a/tests/test_cpp_domain.py +++ b/tests/test_cpp_domain.py @@ -75,6 +75,30 @@ def test_type_definitions(): x = 'int get_value() const noexcept' assert unicode(parse('function', x)) == x + x = 'int get_value() const noexcept = delete' + assert unicode(parse('function', x)) == x + + x = 'MyClass::MyClass(MyClass::MyClass&&) = default' + assert unicode(parse('function', x)) == x + + x = 'MyClass::a_virtual_function() const override' + assert unicode(parse('function', x)) == x + + x = 'MyClass::a_member_function() volatile' + assert unicode(parse('function', x)) == x + + x = 'MyClass::a_member_function() const volatile' + assert unicode(parse('function', x)) == x + + x = 'MyClass::a_member_function() &&' + assert unicode(parse('function', x)) == x + + x = 'MyClass::a_member_function() &' + assert unicode(parse('function', x)) == x + + x = 'MyClass::a_member_function() const &' + assert unicode(parse('function', x)) == x + x = 'int main(int argc, char* argv[][])' assert unicode(parse('function', x)) == x |