diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2016-10-23 14:43:59 +0300 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2016-10-23 14:43:59 +0300 |
commit | e9667c1856411ab9368fb440276463c4c8f2f4ff (patch) | |
tree | ee4ca8f518a89ca830f20126b0085b63dac3c240 /tests/options | |
parent | f866af7db7af0c42e5394a714a61513d189f2ba3 (diff) |
Add test cases for proto3 has_ field support.
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]; +} + |