llvm-project/llvm/test/TableGen/ListOfList.td

13 lines
231 B
TableGen

// RUN: llvm-tblgen %s | FileCheck %s
class Base<string t> {
string text = t;
}
class Derived<list<list<string>> thetext> : Base<thetext[0][0]>;
def FOO : Derived<[["foo"]]>;
// CHECK: text = "foo"
// CHECK-NOT: text = "foo"