forked from OSchip/llvm-project
Test VarListElementInit:: resolveListElementReference
Add a TableGen test to check if indexing lists of lists works. llvm-svn: 140883
This commit is contained in:
parent
74ce80f34e
commit
0c3a2b48e7
|
@ -0,0 +1,13 @@
|
|||
// 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"
|
Loading…
Reference in New Issue