aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/compiler/testdata
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/compiler/testdata')
-rw-r--r--pkg/compiler/testdata/all.txt2
-rw-r--r--pkg/compiler/testdata/errors.txt1
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]])