summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-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 9395a0a..e196968 100644
--- a/Source/Checks/cm_cxx_override.cxx
+++ b/Source/Checks/cm_cxx_override.cxx
@@ -1,10 +1,12 @@
struct Foo
{
+ virtual ~Foo() {}
virtual int test() const = 0;
};
struct Bar : Foo
{
+ ~Bar() override {}
int test() const override { return 0; }
};