From de3e24c4b6cd0136618ce74eb025a15d4834c082 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 23 Jan 2018 10:44:01 +0100 Subject: pkg/compiler: allow strings as template arguments Needed for netfilter descriptions. --- pkg/compiler/testdata/all.txt | 2 ++ pkg/compiler/testdata/errors.txt | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'pkg/compiler/testdata') diff --git a/pkg/compiler/testdata/all.txt b/pkg/compiler/testdata/all.txt index ad04364b0..088e119ef 100644 --- a/pkg/compiler/testdata/all.txt +++ b/pkg/compiler/testdata/all.txt @@ -86,6 +86,8 @@ bitfield0 { type type0 int8 type templ0[A, B] const[A, B] +type templ2[STR] string[STR] +type type3 templ2["a"] type templ_struct0[A, B] { len len[parent, int16] diff --git a/pkg/compiler/testdata/errors.txt b/pkg/compiler/testdata/errors.txt index 6a9bcbae3..8d0a9db1b 100644 --- a/pkg/compiler/testdata/errors.txt +++ b/pkg/compiler/testdata/errors.txt @@ -266,5 +266,4 @@ foo$202(a templ0) ### template templ0 needs 2 arguments instead of 0 foo$203(a type0[42]) ### type type0 is not a template foo$204(a ptr[in, templ_struct0[42, int8]]) foo$205(a ptr[in, templ_struct0[int8, int8]]) -foo$206(a ptr[in, templ_struct1["foo"]]) ### template arguments can't be strings ("foo") foo$207(a ptr[in, templ_struct2[1]]) -- cgit mrf-deployment