~ubuntu-branches/debian/stretch/protobuf/stretch

« back to all changes in this revision

Viewing changes to src/google/protobuf/compiler/cpp/cpp_test_bad_identifiers.proto

  • Committer: Package Import Robot
  • Author(s): Robert S. Edmonds
  • Date: 2014-09-11 22:50:10 UTC
  • mfrom: (10.1.9 experimental)
  • Revision ID: package-import@ubuntu.com-20140911225010-wt4yo9dpc1fzuq5g
Tags: 2.6.0-3
Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
98
98
  // Some keywords.
99
99
  optional uint32 int = 30;
100
100
  optional uint32 friend = 31;
 
101
  optional uint32 class = 37;
101
102
 
102
103
  // The generator used to #define a macro called "DO" inside the .cc file.
103
104
  message DO {}
107
108
  optional int32 field_type = 33;
108
109
  optional bool is_packed = 34;
109
110
 
 
111
  // test conflicting release_$name$. "length" and "do" field in this message
 
112
  // must remain string or message fields to make the test valid.
 
113
  optional string release_length = 35;
 
114
  // A more extreme case, the field name "do" here is a keyword, which will be
 
115
  // escaped to "do_" already. Test there is no conflict even with escaped field
 
116
  // names.
 
117
  optional DO release_do = 36;
 
118
 
110
119
  extensions 1000 to max;
111
120
}
112
121