aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/compiler/testdata/all.txt
diff options
context:
space:
mode:
authorPaul Chaignon <paul.chaignon@orange.com>2019-10-25 19:14:52 +0200
committerDmitry Vyukov <dvyukov@google.com>2019-11-01 19:14:49 +0100
commitf922d4435a79739a2abfdd4100f3eec10a5ef41b (patch)
treea832c7f727306580e4aa3f6df2070b3e8973c2b9 /pkg/compiler/testdata/all.txt
parenta41ca8fa8285754d8561dcc3ed54cca2da60eed7 (diff)
pkg/compiler: special BASE argument in templates
Signed-off-by: Paul Chaignon <paul.chaignon@orange.com>
Diffstat (limited to 'pkg/compiler/testdata/all.txt')
-rw-r--r--pkg/compiler/testdata/all.txt10
1 files changed, 7 insertions, 3 deletions
diff --git a/pkg/compiler/testdata/all.txt b/pkg/compiler/testdata/all.txt
index 90d408915..7df52dd2f 100644
--- a/pkg/compiler/testdata/all.txt
+++ b/pkg/compiler/testdata/all.txt
@@ -213,9 +213,9 @@ type templ_base1[TYPE, CONST] {
f1 TYPE
}
-type templ_templ[BASE, CONST] {
- f1 BASE[int8, CONST]
- f2 BASE[int32, 0]
+type templ_templ[TMPL, CONST] {
+ f1 TMPL[int8, CONST]
+ f2 TMPL[int32, 0]
}
templ_templ_use {
@@ -230,6 +230,8 @@ type templ_struct5 templ_struct0[C1, templ_struct0[C2, int8]]
type templ_struct6 templ_struct0[C1, templ_struct2[C2]]
type templ_union union_with_templ_struct
type templ_base3[BASE] BASE
+type templ_base4[BASE] const[0, BASE]
+type templ_base5[VAL, BASE] const[VAL, BASE]
foo$templ0(a templ0[42, int8])
foo$templ1(a ptr[in, templ_struct0[C2, int8]])
@@ -241,6 +243,8 @@ foo$templ6(a ptr[in, templ_struct4])
foo$templ7(a ptr[in, templ_struct5], b ptr[in, templ_struct6], c ptr[in, templ_union], d ptr[in, type3])
foo$templ8(a ptr[in, templ_templ_use])
foo$templ9(a ptr[in, templ_base3[int64]])
+foo$templ10(a ptr[in, templ_base4[int8]])
+foo$templ11(a ptr[in, templ_base5[42, int8]])
# Structs.