summaryrefslogtreecommitdiffstats
path: root/libs/nanopb/tests/regression/issue_166/enums.proto
diff options
context:
space:
mode:
Diffstat (limited to 'libs/nanopb/tests/regression/issue_166/enums.proto')
-rw-r--r--libs/nanopb/tests/regression/issue_166/enums.proto18
1 files changed, 18 insertions, 0 deletions
diff --git a/libs/nanopb/tests/regression/issue_166/enums.proto b/libs/nanopb/tests/regression/issue_166/enums.proto
new file mode 100644
index 00000000..36948044
--- /dev/null
+++ b/libs/nanopb/tests/regression/issue_166/enums.proto
@@ -0,0 +1,18 @@
+syntax = "proto2";
+
+enum SignedEnum {
+ SE_MIN = -1;
+ SE_MAX = 255;
+}
+
+enum UnsignedEnum {
+ UE_MAX = 65536;
+}
+
+message SignedMsg {
+ required SignedEnum value = 1;
+}
+
+message UnsignedMsg {
+ required UnsignedEnum value = 1;
+}