aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libsample/derived.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libsample/derived.cpp')
-rw-r--r--tests/libsample/derived.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/libsample/derived.cpp b/tests/libsample/derived.cpp
index 0acba8e88..0a3646258 100644
--- a/tests/libsample/derived.cpp
+++ b/tests/libsample/derived.cpp
@@ -98,3 +98,12 @@ Derived::otherOverloaded(int a, double b)
return OtherOverloadedFunc_id;
}
+struct SecrectClass : public Abstract {
+ virtual void pureVirtual() {}
+ virtual PrintFormat returnAnEnum() { return Short; }
+};
+
+Abstract* Derived::triggerImpossibleTypeDiscovery()
+{
+ return new SecrectClass;
+}