summaryrefslogtreecommitdiffstats
path: root/tests/options.proto
diff options
context:
space:
mode:
Diffstat (limited to 'tests/options.proto')
-rw-r--r--tests/options.proto11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/options.proto b/tests/options.proto
index 7eb2eb30..413d21b5 100644
--- a/tests/options.proto
+++ b/tests/options.proto
@@ -43,3 +43,14 @@ message EnumTest
{
required Enum1 field = 1 [default = EnumValue2];
}
+
+// Short enum names inside message
+message Message5
+{
+ enum Enum2
+ {
+ option (nanopb_enumopt).long_names = false;
+ EnumValue1 = 1;
+ }
+ required Enum2 field = 1 [default = EnumValue1];
+}