summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'core/org.eclipse.cdt.core.tests/resources/rewrite/ASTWriterDeclaratorTestSource.awts')
-rw-r--r--core/org.eclipse.cdt.core.tests/resources/rewrite/ASTWriterDeclaratorTestSource.awts29
1 files changed, 29 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core.tests/resources/rewrite/ASTWriterDeclaratorTestSource.awts b/core/org.eclipse.cdt.core.tests/resources/rewrite/ASTWriterDeclaratorTestSource.awts
index 97c1ba1..bb26697 100644
--- a/core/org.eclipse.cdt.core.tests/resources/rewrite/ASTWriterDeclaratorTestSource.awts
+++ b/core/org.eclipse.cdt.core.tests/resources/rewrite/ASTWriterDeclaratorTestSource.awts
@@ -117,3 +117,32 @@ int&& foo(int&& a)
char&& b;
}
+//!ICPPASTFunctionDeclarator in member function declared final
+//%CPP
+struct S
+{
+ virtual void memFun() final;
+};
+
+//!ICPPASTFunctionDeclarator in member function declared override
+//%CPP
+struct S
+{
+ virtual void memFun() override;
+};
+
+//!ICPPASTFunctionDeclarator in member function declared override final
+//%CPP
+struct S
+{
+ virtual void memFun() override final;
+};
+
+//!ICPPASTFunctionDeclarator in member function definition declared final
+//%CPP
+struct S
+{
+ virtual void memFun() final
+ {
+ }
+}; \ No newline at end of file