summaryrefslogtreecommitdiffstats
path: root/tests/libsample/abstract.cpp
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-07-02 16:26:57 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2010-07-02 16:32:31 -0300
commit95b44627e2080c25a6fba858b18a68727c064d16 (patch)
tree3cfedabb14f77b04f9ef6292249ade06019c8c8c /tests/libsample/abstract.cpp
parent7a726a6338e80bdfe9a4a926af29176012859f88 (diff)
downloadshiboken-95b44627e2080c25a6fba858b18a68727c064d16.tar.gz
shiboken-95b44627e2080c25a6fba858b18a68727c064d16.tar.xz
shiboken-95b44627e2080c25a6fba858b18a68727c064d16.zip
Add support for static fields.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests/libsample/abstract.cpp')
-rw-r--r--tests/libsample/abstract.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/libsample/abstract.cpp b/tests/libsample/abstract.cpp
index e81d2cb8..f1f26421 100644
--- a/tests/libsample/abstract.cpp
+++ b/tests/libsample/abstract.cpp
@@ -38,6 +38,8 @@
using namespace std;
+const int Abstract::staticPrimitiveField = 0;
+
Abstract::Abstract(int id) : m_id(id)
{
primitiveField = 123;