diff options
Diffstat (limited to 'tests/options')
-rw-r--r-- | tests/options/options.expected | 1 | ||||
-rw-r--r-- | tests/options/options.proto | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/options/options.expected b/tests/options/options.expected index 63ba0fd8..0769880a 100644 --- a/tests/options/options.expected +++ b/tests/options/options.expected @@ -15,4 +15,5 @@ Message5_EnumValue1 \s+PB_MSG\(104,-1,Message4\) \\ \s+PB_MSG\(105,[0-9]*,Message5\) \\ #define Message5_msgid 105 +! has_proto3field diff --git a/tests/options/options.proto b/tests/options/options.proto index aa722b52..89bb086f 100644 --- a/tests/options/options.proto +++ b/tests/options/options.proto @@ -89,3 +89,9 @@ message OneofMessage } } +// Proto3-style optional field in proto2 file +message Proto3Field +{ + optional int32 proto3field = 1 [(nanopb).proto3 = true]; +} + |