mirror of
https://github.com/google/pebble.git
synced 2025-12-02 12:12:23 -05:00
Import of the watch repository from Pebble
This commit is contained in:
25
third_party/nanopb/tests/regression/issue_746/test.proto
vendored
Normal file
25
third_party/nanopb/tests/regression/issue_746/test.proto
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
syntax = "proto2"; // must be "proto2", proto3 requires enums starting with 0.
|
||||
|
||||
enum Enum
|
||||
{
|
||||
enumerand = 1; // must be non-zero
|
||||
}
|
||||
|
||||
message Outer1
|
||||
{
|
||||
message Inner
|
||||
{
|
||||
optional Enum enum1 = 1; // can also be "required"
|
||||
}
|
||||
}
|
||||
|
||||
message Outer2
|
||||
{
|
||||
message Inner
|
||||
{
|
||||
// further trouble of this is also named "enum1"
|
||||
optional Enum enum2 = 1; // can also be "required"
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user