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 e57e873543
commit 0220aa8d3c

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