summaryrefslogtreecommitdiffstats
path: root/tests/mem_release/mem_release.proto
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mem_release/mem_release.proto')
-rw-r--r--tests/mem_release/mem_release.proto10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/mem_release/mem_release.proto b/tests/mem_release/mem_release.proto
index 0db393ae..c3b38c8b 100644
--- a/tests/mem_release/mem_release.proto
+++ b/tests/mem_release/mem_release.proto
@@ -22,3 +22,13 @@ extend TestMessage
optional SubMessage static_ext = 101 [(nanopb).type = FT_STATIC];
}
+message OneofMessage
+{
+ required int32 first = 1;
+ oneof msgs
+ {
+ TestMessage msg1 = 2;
+ SubMessage msg2 = 3;
+ }
+ required int32 last = 4;
+}