mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
c5830e015f
Add a TableGen test to check if indexing lists of lists works. llvm-svn: 140883
14 lines
240 B
TableGen
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"
|