diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2010-01-28 21:35:33 -0200 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2010-01-28 22:22:22 -0200 |
commit | af98f2bd0db84f5698e9fd5896262b61e17d03bc (patch) | |
tree | 665ac87b8cf09e57c7501aa4da61ba626d8e0665 /tests/libsample/derived.cpp | |
parent | 6daffa0a3452ee36ca8c39cf90fb0cefcbb5c205 (diff) |
Add test for an impossible type discovery when the type has virtual functions.
Diffstat (limited to 'tests/libsample/derived.cpp')
-rw-r--r-- | tests/libsample/derived.cpp | 9 |
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; +} |