From 9dd81c51b3c64221117ad2c71daff0980baaf1c2 Mon Sep 17 00:00:00 2001 From: Petteri Aimonen Date: Sun, 12 Feb 2017 10:45:07 +0200 Subject: Add regression test for issue 242 --- tests/regression/issue_242/zero_value.proto | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/regression/issue_242/zero_value.proto (limited to 'tests/regression/issue_242/zero_value.proto') 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]; +} + -- cgit 1.2.3-korg