aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libsample
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
parent34c599246c7e25194bce4157e166b9bead2a1795 (diff)
Add test for bug on the current type discovery algorithm.
Diffstat (limited to 'tests/libsample')
-rw-r--r--tests/libsample/derived.cpp8
-rw-r--r--tests/libsample/derived.h1
2 files changed, 9 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;
+}
diff --git a/tests/libsample/derived.h b/tests/libsample/derived.h
index 832148e35..5a4543155 100644
--- a/tests/libsample/derived.h
+++ b/tests/libsample/derived.h
@@ -85,6 +85,7 @@ public:
SomeInnerClass returnMyParameter(const SomeInnerClass& s) { return s; }
static Abstract* triggerImpossibleTypeDiscovery();
+ static Abstract* triggerAnotherImpossibleTypeDiscovery();
protected:
const char* getClassName() { return className(); }
virtual const char* className() { return "Derived"; }