mirror of
https://github.com/google/pebble.git
synced 2025-03-20 11:01:20 +00:00
15 lines
352 B
Text
15 lines
352 B
Text
|
# Regression test for #363:
|
||
|
# Incorrect PB_STATIC_ASSERT for bytes inside oneof
|
||
|
|
||
|
Import("env")
|
||
|
|
||
|
env.NanopbProto("oneofmsg.proto")
|
||
|
testprog = env.Program(["test_oneofmsg.c",
|
||
|
"oneofmsg.pb.c",
|
||
|
"$COMMON/pb_encode.o",
|
||
|
"$COMMON/pb_decode.o",
|
||
|
"$COMMON/pb_common.o"])
|
||
|
|
||
|
env.RunTest(testprog)
|
||
|
|