llvm-6502/test/TableGen/ListOfList.td
2011-10-06 13:39:59 +00:00

14 lines
250 B
TableGen

// RUN llvm-tblgen %s | FileCheck %s
// RUN: llvm-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"