diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-10-11 18:04:08 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:18:28 -0300 |
commit | 836ebb910f0dec27ae20f25dab4e9041780fccd7 (patch) | |
tree | 8076256a574fc82d319392a15ebe94509c843d30 /tests/libsample | |
parent | f6128fb64a591afaa22ed82cc1419ffbbd991583 (diff) |
Added unit test for bug 969.
Diffstat (limited to 'tests/libsample')
-rw-r--r-- | tests/libsample/objecttypebyvalue.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/libsample/objecttypebyvalue.h b/tests/libsample/objecttypebyvalue.h new file mode 100644 index 000000000..0eb3bdd70 --- /dev/null +++ b/tests/libsample/objecttypebyvalue.h @@ -0,0 +1,36 @@ +/* + * This file is part of the Shiboken Python Binding Generator project. + * + * Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). + * + * Contact: PySide team <contact@pyside.org> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef OBJECTTYPEBYVALUE_H +#define OBJECTTYPEBYVALUE_H +#include "protected.h" + +class ObjectTypeByValue +{ +public: + ObjectTypeByValue returnSomeKindOfMe() { return ObjectTypeByValue(); } + + // prop used to check for segfaults + ProtectedProperty prop; +}; + +#endif |