| Index: third_party/protobuf/src/google/protobuf/compiler/cpp/test_large_enum_value.proto
|
| diff --git a/third_party/protobuf/src/google/protobuf/unittest_lite_imports_nonlite.proto b/third_party/protobuf/src/google/protobuf/compiler/cpp/test_large_enum_value.proto
|
| similarity index 82%
|
| copy from third_party/protobuf/src/google/protobuf/unittest_lite_imports_nonlite.proto
|
| copy to third_party/protobuf/src/google/protobuf/compiler/cpp/test_large_enum_value.proto
|
| index d52cb8cc36d8924a3454f9170f6b338f14a59c5c..cb6ca1b1512baf9669134cb7d1640c6351cc6b12 100644
|
| --- a/third_party/protobuf/src/google/protobuf/unittest_lite_imports_nonlite.proto
|
| +++ b/third_party/protobuf/src/google/protobuf/compiler/cpp/test_large_enum_value.proto
|
| @@ -1,6 +1,6 @@
|
| // Protocol Buffers - Google's data interchange format
|
| // Copyright 2008 Google Inc. All rights reserved.
|
| -// http://code.google.com/p/protobuf/
|
| +// https://developers.google.com/protocol-buffers/
|
| //
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| @@ -28,16 +28,16 @@
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| -// Author: kenton@google.com (Kenton Varda)
|
| -//
|
| -// Tests that a "lite" message can import a regular message.
|
| +// Test that proto2 compiler can generate valid code when the enum value
|
| +// is INT_MAX. Note that this is a compile-only test and this proto is not
|
| +// referenced in any C++ code.
|
| +syntax = "proto2";
|
|
|
| package protobuf_unittest;
|
|
|
| -import "google/protobuf/unittest.proto";
|
| -
|
| -option optimize_for = LITE_RUNTIME;
|
| -
|
| -message TestLiteImportsNonlite {
|
| - optional TestAllTypes message = 1;
|
| +message TestLargeEnumValue {
|
| + enum EnumWithLargeValue {
|
| + VALUE_1 = 1;
|
| + VALUE_MAX = 0x7fffffff;
|
| + }
|
| }
|
|
|