aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/compiler/testdata/all.txt
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-02-17 17:00:53 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-02-17 19:02:12 +0100
commit414c035582c39398ddd927b5e4fdfd7a6f3aefc5 (patch)
treeccc2277a5c8f233d376fb4117203c3bb7e14ce7a /pkg/compiler/testdata/all.txt
parenta08436c97370fa1df802728683ca2429af93b841 (diff)
pkg/compiler: support template template arguments
Can be useful for netfilter descriptions.
Diffstat (limited to 'pkg/compiler/testdata/all.txt')
-rw-r--r--pkg/compiler/testdata/all.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/pkg/compiler/testdata/all.txt b/pkg/compiler/testdata/all.txt
index 2bf76c28b..dd2a90ba3 100644
--- a/pkg/compiler/testdata/all.txt
+++ b/pkg/compiler/testdata/all.txt
@@ -133,6 +133,26 @@ struct0 {
f2 int16
}
+type templ_base0[TYPE, CONST] {
+ f1 TYPE
+ f2 const[CONST, int32]
+}
+
+type templ_base1[TYPE, CONST] {
+ f2 const[CONST, int8]
+ f1 TYPE
+}
+
+type templ_templ[BASE, CONST] {
+ f1 BASE[int8, CONST]
+ f2 BASE[int32, 0]
+}
+
+templ_templ_use {
+ f1 templ_templ[templ_base0, 0]
+ f2 templ_templ[templ_base1, 1]
+}
+
type templ_struct2[A] templ_struct0[A, int8]
type templ_struct3 templ_struct2[C1]
type templ_struct4 templ_struct3