summaryrefslogtreecommitdiffstats
path: root/Source/Checks
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Checks')
-rw-r--r--Source/Checks/cm_cxx_override.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Checks/cm_cxx_override.cxx b/Source/Checks/cm_cxx_override.cxx
index e196968..5a33fbb 100644
--- a/Source/Checks/cm_cxx_override.cxx
+++ b/Source/Checks/cm_cxx_override.cxx
@@ -1,11 +1,13 @@
struct Foo
{
+ Foo() {}
virtual ~Foo() {}
virtual int test() const = 0;
};
struct Bar : Foo
{
+ Bar() {}
~Bar() override {}
int test() const override { return 0; }
};