From 62a7e4ff2b3487ec259de90db9215c4ad8838dd6 Mon Sep 17 00:00:00 2001 From: Petteri Aimonen Date: Sun, 22 Mar 2015 11:19:43 +0200 Subject: Add simple test case for message ids --- tests/options/options.proto | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/options/options.proto') diff --git a/tests/options/options.proto b/tests/options/options.proto index cdcffeb7..b7050418 100644 --- a/tests/options/options.proto +++ b/tests/options/options.proto @@ -22,12 +22,14 @@ message Message2 // Field level options message Message3 { + option (nanopb_msgopt).msgid = 103; required string fieldsize = 1 [(nanopb).max_size = 40]; } // Forced callback field message Message4 { + option (nanopb_msgopt).msgid = 104; required int32 int32_callback = 1 [(nanopb).type = FT_CALLBACK]; } @@ -47,6 +49,7 @@ message EnumTest // Short enum names inside message message Message5 { + option (nanopb_msgopt).msgid = 105; enum Enum2 { option (nanopb_enumopt).long_names = false; -- cgit 1.2.3-korg