Dag operator should be able to be template params.

llvm-svn: 27262
This commit is contained in:
Chris Lattner 2006-03-30 22:49:59 +00:00
parent 612fa8e6f3
commit 11ab8a9d3b
1 changed files with 15 additions and 0 deletions

View 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>;