summaryrefslogtreecommitdiffstats
path: root/Source/Checks/cm_cxx_override.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Checks/cm_cxx_override.cxx')
-rw-r--r--Source/Checks/cm_cxx_override.cxx24
1 files changed, 0 insertions, 24 deletions
diff --git a/Source/Checks/cm_cxx_override.cxx b/Source/Checks/cm_cxx_override.cxx
deleted file mode 100644
index 5a33fbb..0000000
--- a/Source/Checks/cm_cxx_override.cxx
+++ /dev/null
@@ -1,24 +0,0 @@
-struct Foo
-{
- Foo() {}
- virtual ~Foo() {}
- virtual int test() const = 0;
-};
-
-struct Bar : Foo
-{
- Bar() {}
- ~Bar() override {}
- int test() const override { return 0; }
-};
-
-int test(Foo const& foo)
-{
- return foo.test();
-}
-
-int main()
-{
- Bar const bar;
- return test(bar);
-}