summaryrefslogtreecommitdiffstats
path: root/tests/mem_release/mem_release.proto
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2015-01-15 18:58:08 +0200
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2015-01-15 18:58:08 +0200
commite1c50496d9e7d1f54c4f9c344cca25bb85d61659 (patch)
treec3886f82dfa9e17df14a68b43ce927cadd92c2c9 /tests/mem_release/mem_release.proto
parentf4b3a1c2027e330c52e661252acba6f69742fca6 (diff)
Release memory when overwriting oneof fields.
Update issue 131 Status: FixedInGit
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;
+}