1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00
llvm-mirror/test/TableGen/Dag.td
Chris Lattner a4ec3f20fd rename add some comments.
llvm-svn: 115741
2010-10-06 04:37:17 +00:00

36 lines
594 B
TableGen

// RUN: tblgen %s | FileCheck %s
// XFAIL: vg_leak
//===----------------------------------------------------------------------===//
// Substitution of an int.
def X1;
class C1<int N> {
dag d = (X1 N);
}
def VAL1 : C1<13>;
// CHECK: def VAL1 {
// CHECK-NEXT: dag d = (X1 13)
//===----------------------------------------------------------------------===//
// Substitution of a DAG.
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)