aboutsummaryrefslogtreecommitdiffstats
path: root/tests/options.proto
diff options
context:
space:
mode:
Diffstat (limited to 'tests/options.proto')
-rw-r--r--tests/options.proto9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/options.proto b/tests/options.proto
index 3e9383c..b5badcf 100644
--- a/tests/options.proto
+++ b/tests/options.proto
@@ -62,3 +62,12 @@ message my_packed_struct
optional int32 myfield = 1;
}
+// Message with ignored field
+// Note: doesn't really test if the field is missing in the output,
+// but atleast tests that the output compiles.
+message Message6
+{
+ required int32 field1 = 1;
+ optional int32 field2 = 2 [(nanopb).type = FT_IGNORE];
+}
+