diff options
Diffstat (limited to 'src/google/protobuf/unittest_proto3.proto')
-rw-r--r-- | src/google/protobuf/unittest_proto3.proto | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/google/protobuf/unittest_proto3.proto b/src/google/protobuf/unittest_proto3.proto index 84815d42..1c3bf91d 100644 --- a/src/google/protobuf/unittest_proto3.proto +++ b/src/google/protobuf/unittest_proto3.proto @@ -206,3 +206,17 @@ enum ForeignEnum { message TestEmptyMessage { } +// Same layout as TestOneof2 in unittest.proto to test unknown enum value +// parsing behavior in oneof. +message TestOneof2 { + oneof foo { + NestedEnum foo_enum = 6; + } + + enum NestedEnum { + UNKNOWN = 0; + FOO = 1; + BAR = 2; + BAZ = 3; + } +} |