summaryrefslogtreecommitdiffstats
path: root/tests/libsample/samplenamespace.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libsample/samplenamespace.h')
-rw-r--r--tests/libsample/samplenamespace.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/libsample/samplenamespace.h b/tests/libsample/samplenamespace.h
index 2533b974..d00bbb1f 100644
--- a/tests/libsample/samplenamespace.h
+++ b/tests/libsample/samplenamespace.h
@@ -29,6 +29,12 @@
class ObjectType;
+// Anonymous global enum
+enum {
+ AnonymousGlobalEnum_Value0,
+ AnonymousGlobalEnum_Value1
+};
+
namespace SampleNamespace
{
@@ -50,6 +56,14 @@ enum OutValue {
TwoOut
};
+// Anonymous non-global enum.
+// This counts as a class enum, since C++ namespaces
+// are represented as classes in Python.
+enum {
+ AnonymousClassEnum_Value0,
+ AnonymousClassEnum_Value1
+};
+
LIBSAMPLE_API OutValue enumInEnumOut(InValue in);
LIBSAMPLE_API int getNumber(Option opt);