mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Add some tests of advanced TableGen list functionality.
llvm-svn: 74445
This commit is contained in:
parent
7fcd1a3f35
commit
f39b82b3b3
11
test/TableGen/ListArgs.td
Normal file
11
test/TableGen/ListArgs.td
Normal file
@ -0,0 +1,11 @@
|
||||
// RUN: tblgen %s
|
||||
|
||||
class B<list<int> v> {
|
||||
list<int> vals = v;
|
||||
}
|
||||
|
||||
class BB<list<list<int>> vals> : B<vals[0]>;
|
||||
class BBB<list<list<int>> vals> : BB<vals>;
|
||||
|
||||
def OneB : BBB<[[1,2,3]]>;
|
||||
def TwoB : BBB<[[1,2,3],[4,5,6]]>;
|
8
test/TableGen/ListArgsSimple.td
Normal file
8
test/TableGen/ListArgsSimple.td
Normal file
@ -0,0 +1,8 @@
|
||||
// RUN: tblgen %s
|
||||
|
||||
class B<int v> {
|
||||
int val = v;
|
||||
}
|
||||
|
||||
class BB<list<int> vals> : B<vals[0]>;
|
||||
class BBB<list<int> vals> : BB<vals>;
|
Loading…
x
Reference in New Issue
Block a user