YouCompleteMe/cpp/llvm/test/TableGen/ListOfList.td

15 lines
268 B
TableGen
Raw Normal View History

2012-07-05 20:51:06 -04:00
// 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"