diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-05-16 17:28:16 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:15:23 -0300 |
commit | 0ef022ee9824fbacf25bee0534da83bb41276474 (patch) | |
tree | 96021170ffd0deecff8c337724813095dca57032 /tests/libsample | |
parent | 77066fe1d61446fc711d8ca234c915a46e767801 (diff) |
Unit test for bug 851 - "Shiboken recognizes dereference operator overload as times operator overload."
Diffstat (limited to 'tests/libsample')
-rw-r--r-- | tests/libsample/reference.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/libsample/reference.h b/tests/libsample/reference.h index 54360d880..588644a2a 100644 --- a/tests/libsample/reference.h +++ b/tests/libsample/reference.h @@ -53,6 +53,9 @@ public: virtual Reference& returnMyFirstArg(Reference& ref) { return ref; } virtual Reference& returnMySecondArg(int a, Reference& ref) { return ref; } + + // nonsense operator to test if Shiboken is ignoring dereference operators. + int operator*() { return m_objId; } private: int m_objId; }; |