aboutsummaryrefslogtreecommitdiffstats
path: root/sys/test/test.txt
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-01-24 11:35:22 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-01-24 11:35:22 +0100
commitca9c302d807f47a55552d0a20a2dfcdb0fcc6e28 (patch)
tree2eb665c4c58d338671dedf8c70d617eebab2e202 /sys/test/test.txt
parente5b101ddff108ef913e8f7c6085eac52498443a0 (diff)
pkg/compiler, prog: fix template parent lens
It's possible that a struct can have 2+ parents, which is the same template (differs only by arguments). See the new test case. Support such case.
Diffstat (limited to 'sys/test/test.txt')
-rw-r--r--sys/test/test.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/sys/test/test.txt b/sys/test/test.txt
index 051c17ce6..b5b1fecf0 100644
--- a/sys/test/test.txt
+++ b/sys/test/test.txt
@@ -350,6 +350,22 @@ type len_temp2[DATA] {
syz_test$length23(a ptr[in, len_templ1[int8, int16]])
+type len_temp3[DATA] {
+ f1 DATA
+ f2 len_nontemp4
+}
+
+len_nontemp4 {
+ f1 len[len_temp3, int32]
+}
+
+len_nontemp5 {
+ f1 len_temp3[int8]
+ f2 len_temp3[int64]
+}
+
+syz_test$length24(a ptr[in, len_nontemp5])
+
# Big endian
syz_test$end0(a0 ptr[in, syz_end_int_struct])