[llvm-commits] [llvm] r140883 - /llvm/trunk/test/TableGen/ListOfList.td

David Greene greened at obbligato.org
Fri Sep 30 13:59:51 PDT 2011


Author: greened
Date: Fri Sep 30 15:59:51 2011
New Revision: 140883

URL: http://llvm.org/viewvc/llvm-project?rev=140883&view=rev
Log:
Test VarListElementInit:: resolveListElementReference

Add a TableGen test to check if indexing lists of lists works.

Added:
    llvm/trunk/test/TableGen/ListOfList.td

Added: llvm/trunk/test/TableGen/ListOfList.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/TableGen/ListOfList.td?rev=140883&view=auto
==============================================================================
--- llvm/trunk/test/TableGen/ListOfList.td (added)
+++ llvm/trunk/test/TableGen/ListOfList.td Fri Sep 30 15:59:51 2011
@@ -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"





More information about the llvm-commits mailing list