mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-25 19:29:53 +00:00
Add some tests of advanced TableGen list functionality.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74445 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2c0266202d
commit
cf048d4e59
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