From dd4fcef5a270fc39a56c0be8122fc6f18314f3cd Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sat, 17 Feb 2018 16:51:52 +0100 Subject: pkg/compiler: allow len of var-len arrays All netfilter subsystems use this unfortunately, so demote this to a warning. --- pkg/compiler/testdata/all.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkg/compiler/testdata/all.txt') diff --git a/pkg/compiler/testdata/all.txt b/pkg/compiler/testdata/all.txt index 6f106a25f..2bf76c28b 100644 --- a/pkg/compiler/testdata/all.txt +++ b/pkg/compiler/testdata/all.txt @@ -42,6 +42,8 @@ type len_temp2[DATA] { } foo$len_templ(a ptr[in, len_templ1[int8, int16]]) +foo$len_var0(a ptr[in, array[string]], b len[a]) +foo$len_var1(a ptr[in, array[string]], b ptr[in, len[a, int32]]) # Void type. -- cgit mrf-deployment