aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libsample
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-02-10 10:55:13 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:13:53 -0300
commita9636d7481facd786a236d5624110de9fd5fdd6c (patch)
tree9202c5c1aec6b5417145b7f7d94bcb2a8dbd23b6 /tests/libsample
parentf1066cac214bba3f42482c17555be4a584e73ed3 (diff)
Added test for overload decision situation involving inheritance.
Diffstat (limited to 'tests/libsample')
-rw-r--r--tests/libsample/objectmodel.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/libsample/objectmodel.h b/tests/libsample/objectmodel.h
index 8c5dff729..8e350efb4 100644
--- a/tests/libsample/objectmodel.h
+++ b/tests/libsample/objectmodel.h
@@ -36,6 +36,12 @@ public:
void setData(ObjectType* data);
virtual ObjectType* data() const;
+ // The MethodCalled enum and related static methods were created to
+ // test bug #630 [http://bugs.openbossa.org/show_bug.cgi?id=630]
+ enum MethodCalled { ObjectTypeCalled, ObjectModelCalled };
+ static MethodCalled receivesObjectTypeFamily(const ObjectType& object) { return ObjectModel::ObjectTypeCalled; }
+ static MethodCalled receivesObjectTypeFamily(const ObjectModel& object) { return ObjectModel::ObjectModelCalled; }
+
private:
// The model holds only one piece of data.
// (This is just a test after all.)