summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-09-30 10:54:30 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-09-30 11:54:43 -0300
commitdcf1b0969fc4e5fc7c92232140ac1d1d751905a2 (patch)
treefcda77e186a54024c708323ff9e8bc2b92951058 /tests
parent385c5799cacd75523a1456cc28c05cade2b11ea5 (diff)
downloadshiboken-dcf1b0969fc4e5fc7c92232140ac1d1d751905a2.tar.gz
shiboken-dcf1b0969fc4e5fc7c92232140ac1d1d751905a2.tar.xz
shiboken-dcf1b0969fc4e5fc7c92232140ac1d1d751905a2.zip
Shiboken avoids generating code for private enums.
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Ara├║jo <renato.filho@openbossa.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/libsample/abstract.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/libsample/abstract.h b/tests/libsample/abstract.h
index 7a9f3e09..bbe39efa 100644
--- a/tests/libsample/abstract.h
+++ b/tests/libsample/abstract.h
@@ -30,12 +30,20 @@ class ObjectType;
class LIBSAMPLE_API Abstract
{
+private:
+ enum PrivateEnum {
+ PrivValue0,
+ PrivValue1,
+ PrivValue2 = PrivValue1 + 2
+ };
public:
enum PrintFormat {
Short,
Verbose,
OnlyId,
- ClassNameAndId
+ ClassNameAndId,
+ DummyItemToTestPrivateEnum1 = Abstract::PrivValue1,
+ DummyItemToTestPrivateEnum2 = PrivValue2,
};
enum Type {