summaryrefslogtreecommitdiffstats
path: root/tests/inline/inline.proto
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@github.mail.kapsi.fi>2016-08-05 07:38:53 +0300
committerGitHub <noreply@github.com>2016-08-05 07:38:53 +0300
commit68a86e96481e6bea987df8de47027847b30c325b (patch)
treeb96eaefeaeaacd123e8d7e2f033dda3ba1698681 /tests/inline/inline.proto
parent0198210f2cc349e7bc5199e8db7f4afc8208d843 (diff)
parent62afd54964528c1fbd5ab802134f7e9ad912d904 (diff)
Merge pull request #211 from tmroeder/feat-inline-bytes
Add inline allocation of bytes fields
Diffstat (limited to 'tests/inline/inline.proto')
-rw-r--r--tests/inline/inline.proto17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/inline/inline.proto b/tests/inline/inline.proto
new file mode 100644
index 00000000..6e511f0a
--- /dev/null
+++ b/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];
+}