summaryrefslogtreecommitdiffstats
path: root/tests/regression/issue_256/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'tests/regression/issue_256/SConscript')
-rw-r--r--tests/regression/issue_256/SConscript16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/regression/issue_256/SConscript b/tests/regression/issue_256/SConscript
new file mode 100644
index 00000000..b2c3e864
--- /dev/null
+++ b/tests/regression/issue_256/SConscript
@@ -0,0 +1,16 @@
+# Regression test for Issue 256: Proto3 mode skips submessages even when
+# later array fields have non-zero value
+
+Import('env')
+
+env.NanopbProto('submsg_array')
+
+p = env.Program(['submsg_array.c',
+ 'submsg_array.pb.c',
+ "$COMMON/pb_decode.o",
+ "$COMMON/pb_encode.o",
+ "$COMMON/pb_common.o"])
+
+env.RunTest(p)
+
+