summaryrefslogtreecommitdiffstats
path: root/tests/options.proto
diff options
context:
space:
mode:
Diffstat (limited to 'tests/options.proto')
-rw-r--r--tests/options.proto6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/options.proto b/tests/options.proto
index e296bcd1..7eb2eb30 100644
--- a/tests/options.proto
+++ b/tests/options.proto
@@ -36,4 +36,10 @@ enum Enum1
{
option (nanopb_enumopt).long_names = false;
EnumValue1 = 1;
+ EnumValue2 = 2;
+}
+
+message EnumTest
+{
+ required Enum1 field = 1 [default = EnumValue2];
}