summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--performance-tests/Misc/basic_func.cpp6
-rw-r--r--performance-tests/Misc/basic_func.h8
2 files changed, 14 insertions, 0 deletions
diff --git a/performance-tests/Misc/basic_func.cpp b/performance-tests/Misc/basic_func.cpp
index 3ef83866b00..c9943b8769e 100644
--- a/performance-tests/Misc/basic_func.cpp
+++ b/performance-tests/Misc/basic_func.cpp
@@ -26,4 +26,10 @@ Foo_v::v_func ()
}
+void
+Foo_d_v::v_func ()
+{
+}
+
+
// EOF
diff --git a/performance-tests/Misc/basic_func.h b/performance-tests/Misc/basic_func.h
index 8207746b736..e687bb2cc76 100644
--- a/performance-tests/Misc/basic_func.h
+++ b/performance-tests/Misc/basic_func.h
@@ -39,4 +39,12 @@ class Foo_v
};
+// A derived class.
+class Foo_d_v : public Foo_v
+{
+ public:
+ virtual void v_func ();
+};
+
+
// EOF