summaryrefslogtreecommitdiff
path: root/tests/examplefiles/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/examplefiles/cpp')
-rw-r--r--tests/examplefiles/cpp/functions.cpp3
-rw-r--r--tests/examplefiles/cpp/functions.cpp.output24
2 files changed, 27 insertions, 0 deletions
diff --git a/tests/examplefiles/cpp/functions.cpp b/tests/examplefiles/cpp/functions.cpp
index 662e0d2c..ef359fe0 100644
--- a/tests/examplefiles/cpp/functions.cpp
+++ b/tests/examplefiles/cpp/functions.cpp
@@ -62,6 +62,9 @@ explicit const string contains(const char* str) {}
explicit const string contains(const char * str);
explicit const string contains(const char * str) {}
+unsigned int contains() {}
+unsigned int contains();
+
// Names with namespaces
string Type::contains(char c) const noexcept;
diff --git a/tests/examplefiles/cpp/functions.cpp.output b/tests/examplefiles/cpp/functions.cpp.output
index 64ab8fb7..619b3fdd 100644
--- a/tests/examplefiles/cpp/functions.cpp.output
+++ b/tests/examplefiles/cpp/functions.cpp.output
@@ -1091,6 +1091,30 @@
'\n' Text.Whitespace
+'unsigned' Keyword.Type
+' ' Text.Whitespace
+'int' Keyword.Type
+' ' Text.Whitespace
+'contains' Name.Function
+'(' Punctuation
+')' Punctuation
+' ' Text.Whitespace
+'{' Punctuation
+'}' Punctuation
+'\n' Text.Whitespace
+
+'unsigned' Keyword.Type
+' ' Text.Whitespace
+'int' Keyword.Type
+' ' Text.Whitespace
+'contains' Name.Function
+'(' Punctuation
+')' Punctuation
+';' Punctuation
+'\n' Text.Whitespace
+
+'\n' Text.Whitespace
+
'// Names with namespaces\n' Comment.Single
'\n' Text.Whitespace