aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libsample/protected.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libsample/protected.h')
-rw-r--r--tests/libsample/protected.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/libsample/protected.h b/tests/libsample/protected.h
index 23b2f5ca7..abbbf2930 100644
--- a/tests/libsample/protected.h
+++ b/tests/libsample/protected.h
@@ -106,5 +106,19 @@ private:
static int dtor_called;
};
+class LIBSAMPLE_API ProtectedEnumClass
+{
+public:
+ ProtectedEnumClass() {}
+ virtual ~ProtectedEnumClass() {}
+protected:
+ enum ProtectedEnum {
+ ProtectedItem0,
+ ProtectedItem1
+ };
+ ProtectedEnum callProtectedEnumMethod(ProtectedEnum in) { return protectedEnumMethod(in); }
+ virtual ProtectedEnum protectedEnumMethod(ProtectedEnum in) { return in; }
+};
+
#endif // PROTECTED_H