summaryrefslogtreecommitdiffstats
path: root/tests/options/options.proto
diff options
context:
space:
mode:
Diffstat (limited to 'tests/options/options.proto')
-rw-r--r--tests/options/options.proto6
1 files changed, 6 insertions, 0 deletions
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];
+}
+