2010-10-06 04:36:30 +00:00
|
|
|
// RUN: tblgen %s | FileCheck %s
|
2010-03-20 23:08:45 +00:00
|
|
|
// XFAIL: vg_leak
|
2010-10-06 04:37:17 +00:00
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Substitution of an int.
|
2010-10-06 04:36:30 +00:00
|
|
|
def X1;
|
2006-01-31 06:01:40 +00:00
|
|
|
|
2010-10-06 04:36:30 +00:00
|
|
|
class C1<int N> {
|
|
|
|
dag d = (X1 N);
|
2006-01-31 06:01:40 +00:00
|
|
|
}
|
|
|
|
|
2010-10-06 04:36:30 +00:00
|
|
|
def VAL1 : C1<13>;
|
2006-01-31 06:01:40 +00:00
|
|
|
|
2010-10-06 04:36:30 +00:00
|
|
|
// CHECK: def VAL1 {
|
|
|
|
// CHECK-NEXT: dag d = (X1 13)
|
|
|
|
|
|
|
|
|
2010-10-06 04:37:17 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Substitution of a DAG.
|
2010-10-06 04:36:30 +00:00
|
|
|
def X2;
|
|
|
|
|
|
|
|
class yclass;
|
|
|
|
def Y2 : yclass;
|
|
|
|
|
|
|
|
class C2<yclass N> {
|
|
|
|
dag d = (X2 N);
|
|
|
|
dag e = (N X2);
|
|
|
|
}
|
|
|
|
|
|
|
|
def VAL2 : C2<Y2>;
|
|
|
|
|
|
|
|
// CHECK: def VAL2 {
|
|
|
|
// CHECK-NEXT: dag d = (X2 Y2)
|
|
|
|
// CHECK-NEXT: dag e = (Y2 X2)
|
2006-01-31 06:01:40 +00:00
|
|
|
|