diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-01-23 10:44:01 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-01-23 10:44:01 +0100 |
| commit | de3e24c4b6cd0136618ce74eb025a15d4834c082 (patch) | |
| tree | 9a9653ad878ef929b6630fa82a0c7626d2de8d41 /pkg/compiler/testdata | |
| parent | 228e3d951cef1d13723fd60ab957a9c81415c84a (diff) | |
pkg/compiler: allow strings as template arguments
Needed for netfilter descriptions.
Diffstat (limited to 'pkg/compiler/testdata')
| -rw-r--r-- | pkg/compiler/testdata/all.txt | 2 | ||||
| -rw-r--r-- | pkg/compiler/testdata/errors.txt | 1 |
2 files changed, 2 insertions, 1 deletions
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]]) |
