aboutsummaryrefslogtreecommitdiffstats
path: root/tests/regression/issue_242/zero_value.proto
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2017-02-12 10:45:07 +0200
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2017-02-12 10:50:05 +0200
commit9dd81c51b3c64221117ad2c71daff0980baaf1c2 (patch)
tree4cd3824e3f4438a4f397f2f84fa707642274f823 /tests/regression/issue_242/zero_value.proto
parentafdbca39edfaef58073f661d23300e1133c4e8af (diff)
Add regression test for issue 242
Diffstat (limited to 'tests/regression/issue_242/zero_value.proto')
-rw-r--r--tests/regression/issue_242/zero_value.proto15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/regression/issue_242/zero_value.proto b/tests/regression/issue_242/zero_value.proto
new file mode 100644
index 00000000..020a39a5
--- /dev/null
+++ b/tests/regression/issue_242/zero_value.proto
@@ -0,0 +1,15 @@
+syntax = "proto2";
+import "nanopb.proto";
+
+message Extendable {
+ extensions 10 to 100;
+}
+
+extend Extendable {
+ optional int32 opt_int32 = 11;
+}
+
+message PointerMessage {
+ optional int32 opt_int32 = 11 [(nanopb).type = FT_POINTER];
+}
+