summaryrefslogtreecommitdiff
path: root/test/TableGen
diff options
context:
space:
mode:
Diffstat (limited to 'test/TableGen')
-rw-r--r--test/TableGen/ListOfList.td13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/TableGen/ListOfList.td b/test/TableGen/ListOfList.td
new file mode 100644
index 0000000000..6fe0e89ed8
--- /dev/null
+++ b/test/TableGen/ListOfList.td
@@ -0,0 +1,13 @@
+// RUN tblgen %s | FileCheck %s
+
+// RUN: tblgen %s | grep {foo} | count 1
+
+class Base<string t> {
+ string text = t;
+}
+
+class Derived<list<list<string>> thetext> : Base<thetext[0][0]>;
+
+def FOO : Derived<[["foo"]]>;
+
+// CHECK: text = "foo"