mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00:00
Test VarListElementInit:: resolveListElementReference
Add a TableGen test to check if indexing lists of lists works. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140883 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1045a594e6
commit
f6c8cbba4e
13
test/TableGen/ListOfList.td
Normal file
13
test/TableGen/ListOfList.td
Normal file
@ -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
Block a user