summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures/cxx_override.cpp
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-03-19 12:32:59 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-04-08 09:05:54 (GMT)
commit0685ac6edc8f9285e7b12d32a182e569a372856c (patch)
treef3f805a955f1388e51c3701ee661951c879583f4 /Tests/CompileFeatures/cxx_override.cpp
parent57ac6a905c33211af420aaf1e7fc14b3871a7b16 (diff)
downloadCMake-0685ac6edc8f9285e7b12d32a182e569a372856c.zip
CMake-0685ac6edc8f9285e7b12d32a182e569a372856c.tar.gz
CMake-0685ac6edc8f9285e7b12d32a182e569a372856c.tar.bz2
Features: Add cxx_override.
Diffstat (limited to 'Tests/CompileFeatures/cxx_override.cpp')
-rw-r--r--Tests/CompileFeatures/cxx_override.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/CompileFeatures/cxx_override.cpp b/Tests/CompileFeatures/cxx_override.cpp
new file mode 100644
index 0000000..55bec13
--- /dev/null
+++ b/Tests/CompileFeatures/cxx_override.cpp
@@ -0,0 +1,7 @@
+
+struct A {
+ virtual void doNothing() {}
+};
+struct B : A {
+ void doNothing() override {}
+};