summaryrefslogtreecommitdiffstats
path: root/tests/libsample/abstract.h
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-02-03 21:00:52 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-02-10 08:42:22 -0300
commitacdd27d2497bbc769025e3efe683f67378bd907e (patch)
tree0382dad9b4f76e35e21e4266e75b47e6ac801f70 /tests/libsample/abstract.h
parentec2b9250a03e0aa5778938ff7fc2441350cefc65 (diff)
downloadshiboken-acdd27d2497bbc769025e3efe683f67378bd907e.tar.gz
shiboken-acdd27d2497bbc769025e3efe683f67378bd907e.tar.xz
shiboken-acdd27d2497bbc769025e3efe683f67378bd907e.zip
Adds tests for classes with public member variables.
Three kinds of types are represented: primitive, value and object types. The unit tests also check for correct reference counting.
Diffstat (limited to 'tests/libsample/abstract.h')
-rw-r--r--tests/libsample/abstract.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/libsample/abstract.h b/tests/libsample/abstract.h
index 99d9a1b7..06f8d983 100644
--- a/tests/libsample/abstract.h
+++ b/tests/libsample/abstract.h
@@ -36,6 +36,9 @@
#define ABSTRACT_H
#include "libsamplemacros.h"
+#include "point.h"
+
+class ObjectType;
class LIBSAMPLE_API Abstract
{
@@ -47,6 +50,10 @@ public:
ClassNameAndId
};
+ int primitiveField;
+ Point valueTypeField;
+ ObjectType* objectTypeField;
+
Abstract(int id = -1);
virtual ~Abstract();