diff options
Diffstat (limited to 'test/TableGen/ListOfList.td')
-rw-r--r-- | test/TableGen/ListOfList.td | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/TableGen/ListOfList.td b/test/TableGen/ListOfList.td new file mode 100644 index 0000000..565a99c --- /dev/null +++ b/test/TableGen/ListOfList.td @@ -0,0 +1,14 @@ +// RUN llvm-tblgen %s | FileCheck %s + +// RUN: llvm-tblgen %s | grep {foo} | count 1 +// XFAIL: vg_leak + +class Base<string t> { + string text = t; +} + +class Derived<list<list<string>> thetext> : Base<thetext[0][0]>; + +def FOO : Derived<[["foo"]]>; + +// CHECK: text = "foo" |