1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00
llvm-mirror/test/TableGen/ListOfList.td
David Greene c5830e015f Test VarListElementInit:: resolveListElementReference
Add a TableGen test to check if indexing lists of lists works.

llvm-svn: 140883
2011-09-30 20:59:51 +00:00

14 lines
240 B
TableGen

// 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"