mirror of
https://github.com/google/pebble
synced 2026-10-18 01:04:12 +02:00
Import of the watch repository from Pebble
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
# Regression test for #487:
|
||||
# Problem in default_value() with nested messages
|
||||
|
||||
Import("env")
|
||||
env.NanopbProto("test")
|
||||
env.Object("test.pb.c")
|
||||
@@ -0,0 +1,16 @@
|
||||
syntax = "proto2";
|
||||
package a.b.c;
|
||||
|
||||
message TopLevel {
|
||||
optional uint32 field = 1 [default = 0];
|
||||
optional NestedTypeA foo = 2;
|
||||
|
||||
message NestedTypeA {
|
||||
optional NestedTypeB bar = 1;
|
||||
|
||||
message NestedTypeB {
|
||||
optional uint32 foobar = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user