From e9667c1856411ab9368fb440276463c4c8f2f4ff Mon Sep 17 00:00:00 2001 From: Petteri Aimonen Date: Sun, 23 Oct 2016 14:43:59 +0300 Subject: Add test cases for proto3 has_ field support. --- tests/options/options.proto | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/options/options.proto') 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]; +} + -- cgit 1.2.3-korg