summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2010-01-26 18:34:32 -0200
committerHugo Lima <hugo.lima@openbossa.org>2010-01-26 22:15:52 -0200
commit59bf883ba7a3678ad11e9eed7ddc93636b4c3424 (patch)
treebbd3a8ec4a8fd35e0801ed1b39c39af078e0b631 /tests
parente5654bd14cc0d034192104bb4325ba639d4f043c (diff)
downloadshiboken-59bf883ba7a3678ad11e9eed7ddc93636b4c3424.tar.gz
shiboken-59bf883ba7a3678ad11e9eed7ddc93636b4c3424.tar.xz
shiboken-59bf883ba7a3678ad11e9eed7ddc93636b4c3424.zip
writeMinimalConstructorCallArguments knowns about enums.
Diffstat (limited to 'tests')
-rw-r--r--tests/libother/otherderived.h1
-rw-r--r--tests/libsample/abstract.h2
-rw-r--r--tests/libsample/derived.h2
3 files changed, 5 insertions, 0 deletions
diff --git a/tests/libother/otherderived.h b/tests/libother/otherderived.h
index 994aaca6..d980ec78 100644
--- a/tests/libother/otherderived.h
+++ b/tests/libother/otherderived.h
@@ -49,6 +49,7 @@ public:
virtual ~OtherDerived();
virtual void pureVirtual();
virtual void unpureVirtual();
+ virtual PrintFormat returnAnEnum() { return Short; }
void useObjectTypeFromOtherModule(ObjectType*) {}
void useValueTypeFromOtherModule(const Complex&) {}
diff --git a/tests/libsample/abstract.h b/tests/libsample/abstract.h
index 63ac5944..b9c0713c 100644
--- a/tests/libsample/abstract.h
+++ b/tests/libsample/abstract.h
@@ -61,6 +61,8 @@ public:
virtual void pureVirtual() = 0;
virtual void unpureVirtual();
+ virtual PrintFormat returnAnEnum() = 0;
+
void callPureVirtual();
void callUnpureVirtual();
diff --git a/tests/libsample/derived.h b/tests/libsample/derived.h
index 9e0e33a8..29639bdd 100644
--- a/tests/libsample/derived.h
+++ b/tests/libsample/derived.h
@@ -56,6 +56,8 @@ public:
virtual void pureVirtual();
virtual void unpureVirtual();
+ virtual PrintFormat returnAnEnum() { return Short; }
+
// factory method
static Abstract* createObject();