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,7 @@
|
||||
# Regression test for #545:
|
||||
# Field descriptor width automatic sizing is inaccurate with oneofs
|
||||
|
||||
Import("env")
|
||||
env.NanopbProto("submsg_callback")
|
||||
env.Object("submsg_callback.pb.c")
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
syntax = "proto2";
|
||||
|
||||
import "nanopb.proto";
|
||||
|
||||
message SubMessage3 {
|
||||
required uint32 foo = 1;
|
||||
}
|
||||
|
||||
message SubMessage2 {
|
||||
oneof oneof {
|
||||
SubMessage3 submsg = 1 [(nanopb).submsg_callback = true];
|
||||
}
|
||||
}
|
||||
|
||||
message SubMessage1 {
|
||||
repeated SubMessage2 msgs = 1 [(nanopb).max_count = 16];
|
||||
}
|
||||
|
||||
message MainMessage {
|
||||
required SubMessage1 msg = 1;
|
||||
required uint32 foo = 2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user