mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-06 04:31:08 +00:00
Dag operator should be able to be template params.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27262 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
df084ff78b
commit
824b46f26f
15
test/TableGen/DagDefSubst.ll
Normal file
15
test/TableGen/DagDefSubst.ll
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
// RUN: tblgen %s | grep 'dag d = (X Y)' &&
|
||||||
|
// RUN: tblgen %s | grep 'dag e = (Y X)'
|
||||||
|
def X;
|
||||||
|
|
||||||
|
class yclass;
|
||||||
|
def Y : yclass;
|
||||||
|
|
||||||
|
class C<yclass N> {
|
||||||
|
dag d = (X N);
|
||||||
|
dag e = (N X);
|
||||||
|
}
|
||||||
|
|
||||||
|
def VAL : C<Y>;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user