summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'core/org.eclipse.cdt.core.tests/resources/pdomtests/methodTests/inheritance.cpp')
-rw-r--r--core/org.eclipse.cdt.core.tests/resources/pdomtests/methodTests/inheritance.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core.tests/resources/pdomtests/methodTests/inheritance.cpp b/core/org.eclipse.cdt.core.tests/resources/pdomtests/methodTests/inheritance.cpp
index 9c218bf..06996a5 100644
--- a/core/org.eclipse.cdt.core.tests/resources/pdomtests/methodTests/inheritance.cpp
+++ b/core/org.eclipse.cdt.core.tests/resources/pdomtests/methodTests/inheritance.cpp
@@ -39,6 +39,18 @@ struct B {
struct D : public A, public B {};
+struct E {
+ virtual void virtualMemberFunction(){}
+};
+
+struct F : public E {
+ void virtualMemberFunction() override{}
+};
+
+struct G : public F {
+ void virtualMemberFunction() override final{}
+};
+
class Class2 : public Class1 {
public:
void pureVirtualMethod();