aboutsummaryrefslogtreecommitdiffstats
path: root/CAN-binder/libs/nanopb/tests/inline/inline.proto
diff options
context:
space:
mode:
Diffstat (limited to 'CAN-binder/libs/nanopb/tests/inline/inline.proto')
-rw-r--r--CAN-binder/libs/nanopb/tests/inline/inline.proto17
1 files changed, 17 insertions, 0 deletions
diff --git a/CAN-binder/libs/nanopb/tests/inline/inline.proto b/CAN-binder/libs/nanopb/tests/inline/inline.proto
new file mode 100644
index 00000000..6e511f0a
--- /dev/null
+++ b/CAN-binder/libs/nanopb/tests/inline/inline.proto
@@ -0,0 +1,17 @@
+/* Test nanopb option parsing.
+ * options.expected lists the patterns that are searched for in the output.
+ */
+
+syntax = "proto2";
+
+import "nanopb.proto";
+
+message Message1
+{
+ required bytes data = 1 [(nanopb).type = FT_INLINE, (nanopb).max_size = 32];
+}
+
+message Message2
+{
+ optional bytes data = 1 [(nanopb).type = FT_INLINE, (nanopb).max_size = 64];
+}