aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libsample/protected.h
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-06-02 13:33:59 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-06-03 08:46:38 -0300
commite2738233c5bffb1fd0ad0f44c1a930c366329faa (patch)
tree5c40c7a0b498297da24cb69d0cab971fd571271b /tests/libsample/protected.h
parent7bc6f1512b1febc026d81917f33b1ea90d23fe24 (diff)
Added support for protected fields when not using the "protected hack".
Tests were also added.
Diffstat (limited to 'tests/libsample/protected.h')
-rw-r--r--tests/libsample/protected.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/libsample/protected.h b/tests/libsample/protected.h
index d8d55a40f..8ba4914f8 100644
--- a/tests/libsample/protected.h
+++ b/tests/libsample/protected.h
@@ -126,5 +126,14 @@ protected:
virtual PublicEnum publicEnumMethod(PublicEnum in) { return in; }
};
+
+class LIBSAMPLE_API ProtectedProperty
+{
+public:
+ ProtectedProperty() : protectedProperty(0) {}
+protected:
+ int protectedProperty;
+};
+
#endif // PROTECTED_H