diff options
Diffstat (limited to 'test/TableGen/ListArgs.td')
-rw-r--r-- | test/TableGen/ListArgs.td | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/TableGen/ListArgs.td b/test/TableGen/ListArgs.td new file mode 100644 index 0000000000..daa0de66be --- /dev/null +++ b/test/TableGen/ListArgs.td @@ -0,0 +1,11 @@ +// RUN: tblgen %s + +class B<list<int> v> { + list<int> vals = v; +} + +class BB<list<list<int>> vals> : B<vals[0]>; +class BBB<list<list<int>> vals> : BB<vals>; + +def OneB : BBB<[[1,2,3]]>; +def TwoB : BBB<[[1,2,3],[4,5,6]]>; |