• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Protocol Buffers - Google's data interchange format
2// Copyright 2008 Google Inc.  All rights reserved.
3//
4// Use of this source code is governed by a BSD-style
5// license that can be found in the LICENSE file or at
6// https://developers.google.com/open-source/licenses/bsd
7
8// Test that proto2 compiler can generate valid code when the enum value
9// is INT_MAX. Note that this is a compile-only test and this proto is not
10// referenced in any C++ code.
11syntax = "proto2";
12
13package protobuf_unittest;
14
15message TestLargeEnumValue {
16  enum EnumWithLargeValue {
17    VALUE_1 = 1;
18    VALUE_MAX = 0x7fffffff;
19  }
20}
21