summaryrefslogtreecommitdiff
path: root/src/google/protobuf/unittest.proto
diff options
context:
space:
mode:
authorliujisi@google.com <liujisi@google.com@630680e5-0e50-0410-840e-4b1c322b438d>2012-12-28 23:41:54 +0000
committerliujisi@google.com <liujisi@google.com@630680e5-0e50-0410-840e-4b1c322b438d>2012-12-28 23:41:54 +0000
commitcb77c4c381ea36e1de8ee947b564424c573fa279 (patch)
tree8b5d6db5cf5beddb5845dfd0c119ef5166f57f0e /src/google/protobuf/unittest.proto
parent4770277ec7a285f0f96e9a88af9d4992b7f4b50b (diff)
downloadprotobuf-javalite-cb77c4c381ea36e1de8ee947b564424c573fa279.tar.gz
Generate a warning for duplicated enum values, when allow_alias option isn't
set.
Diffstat (limited to 'src/google/protobuf/unittest.proto')
-rw-r--r--src/google/protobuf/unittest.proto1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/google/protobuf/unittest.proto b/src/google/protobuf/unittest.proto
index 0305be65..6eb2d86f 100644
--- a/src/google/protobuf/unittest.proto
+++ b/src/google/protobuf/unittest.proto
@@ -434,6 +434,7 @@ message TestNestedMessageHasBits {
// Test an enum that has multiple values with the same number.
enum TestEnumWithDupValue {
+ option allow_alias = true;
FOO1 = 1;
BAR1 = 2;
BAZ = 3;