| 1 |
# Regression test for #617: |
| 2 |
# Unordered field numbers inside oneof can cause fields to be ignored |
| 3 |
|
| 4 |
Import("env") |
| 5 |
|
| 6 |
env.NanopbProto(["oneof.proto", "oneof.options"]) |
| 7 |
|
| 8 |
test = env.Program(["test_oneof.c", "oneof.pb.c", "$COMMON/pb_decode.o", "$COMMON/pb_common.o"]) |
| 9 |
env.RunTest(test) |
| 10 |
|