filecheckize

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115740 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2010-10-06 04:36:30 +00:00
parent 578bcf0e48
commit 4822509b28
2 changed files with 24 additions and 21 deletions

View File

@ -1,16 +0,0 @@
// RUN: tblgen %s | grep {dag d = (X Y)}
// RUN: tblgen %s | grep {dag e = (Y X)}
// XFAIL: vg_leak
def X;
class yclass;
def Y : yclass;
class C<yclass N> {
dag d = (X N);
dag e = (N X);
}
def VAL : C<Y>;

View File

@ -1,11 +1,30 @@
// RUN: tblgen %s | grep {dag d = (X 13)}
// RUN: tblgen %s | FileCheck %s
// XFAIL: vg_leak
def X;
def X1;
class C<int N> {
dag d = (X N);
class C1<int N> {
dag d = (X1 N);
}
def VAL : C<13>;
def VAL1 : C1<13>;
// CHECK: def VAL1 {
// CHECK-NEXT: dag d = (X1 13)
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)