aboutsummaryrefslogtreecommitdiffstats
path: root/test/TableGen/ListOfList.td
blob: adf9fe483eb48d80f9012b5635200b48267c20b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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"