diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-02-10 10:55:13 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:13:53 -0300 |
commit | a9636d7481facd786a236d5624110de9fd5fdd6c (patch) | |
tree | 9202c5c1aec6b5417145b7f7d94bcb2a8dbd23b6 /tests/libsample | |
parent | f1066cac214bba3f42482c17555be4a584e73ed3 (diff) |
Added test for overload decision situation involving inheritance.
Diffstat (limited to 'tests/libsample')
-rw-r--r-- | tests/libsample/objectmodel.h | 6 |
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.) |