tests/regression/issue_227/SConscript
raw| 1 | # Regression test for Issue 227:Using proto3 type fields can cause unaligned access |
| 2 | # NOTE: This test will only detect problems when run with clang sanitizer (which |
| 3 | # is done regularly by a jenkins run). |
| 4 | |
| 5 | Import('env') |
| 6 | |
| 7 | env.NanopbProto('unaligned_uint64') |
| 8 | |
| 9 | p = env.Program(["unaligned_uint64.c", |
| 10 | "unaligned_uint64.pb.c", |
| 11 | "$COMMON/pb_encode.o", |
| 12 | "$COMMON/pb_common.o"]) |
| 13 | env.RunTest(p) |
| 14 |