Skip to content

Commit

Permalink
Merge pull request protocolbuffers#1409 from eeight/fix_enum_corruption
Browse files Browse the repository at this point in the history
Fix bug with silent message corruption in LITE_RUNTIME.
  • Loading branch information
xfxyjwf committed May 4, 2016
2 parents d7394f0 + d03010c commit ec0deb0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions google/protobuf/unittest_lite.proto
Original file line number Diff line number Diff line change
Expand Up @@ -386,3 +386,22 @@ message TestEmptyMessageLite{
message TestEmptyMessageWithExtensionsLite {
extensions 1 to max;
}

enum V1EnumLite {
V1_FIRST = 1;
}

enum V2EnumLite {
V2_FIRST = 1;
V2_SECOND = 2;
}

message V1MessageLite {
required int32 int_field = 1;
optional V1EnumLite enum_field = 2 [ default = V1_FIRST ];
}

message V2MessageLite {
required int32 int_field = 1;
optional V2EnumLite enum_field = 2 [ default = V2_FIRST ];
}

0 comments on commit ec0deb0

Please sign in to comment.