summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures/cxx_override.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/CompileFeatures/cxx_override.cpp')
-rw-r--r--Tests/CompileFeatures/cxx_override.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/CompileFeatures/cxx_override.cpp b/Tests/CompileFeatures/cxx_override.cpp
new file mode 100644
index 0000000..3283f2f
--- /dev/null
+++ b/Tests/CompileFeatures/cxx_override.cpp
@@ -0,0 +1,9 @@
+
+struct A
+{
+ virtual void doNothing() {}
+};
+struct B : A
+{
+ void doNothing() override {}
+};