aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libsample/derived.cpp
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2010-02-26 14:57:06 -0300
committerHugo Lima <hugo.lima@openbossa.org>2010-03-02 17:18:15 -0300
commitac7573693042bc8f9d4d94958d89d5b15add39f2 (patch)
tree50f536b36fd3abb78d8d5e7531793acb8eb19ddb /tests/libsample/derived.cpp
parent34c599246c7e25194bce4157e166b9bead2a1795 (diff)
Add test for bug on the current type discovery algorithm.
Diffstat (limited to 'tests/libsample/derived.cpp')
-rw-r--r--tests/libsample/derived.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/libsample/derived.cpp b/tests/libsample/derived.cpp
index 0a3646258..39d9f30e6 100644
--- a/tests/libsample/derived.cpp
+++ b/tests/libsample/derived.cpp
@@ -107,3 +107,11 @@ Abstract* Derived::triggerImpossibleTypeDiscovery()
{
return new SecrectClass;
}
+
+struct AnotherSecretClass : public Derived {
+};
+
+Abstract* Derived::triggerAnotherImpossibleTypeDiscovery()
+{
+ return new AnotherSecretClass;
+}