Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Corbat2012-08-29 00:36:11 -0400
committerSergey Prigogin2012-08-29 00:36:11 -0400
commit6d4c1e4dffcdc14c1b9db7420f6682f779022705 (patch)
tree0f4b6c49c3d7f5510f6ed93f251421a3fc21db16 /core/org.eclipse.cdt.core.tests/resources/pdomtests/methodTests/inheritance.cpp
parentcce375dd68e7ae9288d141d018fe529ed740cb2a (diff)
downloadorg.eclipse.cdt-6d4c1e4dffcdc14c1b9db7420f6682f779022705.tar.gz
org.eclipse.cdt-6d4c1e4dffcdc14c1b9db7420f6682f779022705.tar.xz
org.eclipse.cdt-6d4c1e4dffcdc14c1b9db7420f6682f779022705.zip
Bug 380623 - [C++11] Explicit Virtual Overrides
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 9c218bf5bc..06996a5b22 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();

Back to the top