aboutsummaryrefslogtreecommitdiffstats
path: root/tests/options.proto
diff options
context:
space:
mode:
Diffstat (limited to 'tests/options.proto')
-rw-r--r--tests/options.proto8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/options.proto b/tests/options.proto
index 413d21b5..3e9383cd 100644
--- a/tests/options.proto
+++ b/tests/options.proto
@@ -54,3 +54,11 @@ message Message5
}
required Enum2 field = 1 [default = EnumValue1];
}
+
+// Packed structure
+message my_packed_struct
+{
+ option (nanopb_msgopt).packed_struct = true;
+ optional int32 myfield = 1;
+}
+