llvm.org GIT mirror llvm / 4822509
filecheckize git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115740 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 8 years ago
2 changed file(s) with 24 addition(s) and 21 deletion(s). Raw diff Collapse all Expand all
+0
-16
test/TableGen/DagDefSubst.td less more
None // RUN: tblgen %s | grep {dag d = (X Y)}
1 // RUN: tblgen %s | grep {dag e = (Y X)}
2 // XFAIL: vg_leak
3 def X;
4
5 class yclass;
6 def Y : yclass;
7
8 class C {
9 dag d = (X N);
10 dag e = (N X);
11 }
12
13 def VAL : C;
14
15
None // RUN: tblgen %s | grep {dag d = (X 13)}
0 // RUN: tblgen %s | FileCheck %s
11 // XFAIL: vg_leak
2 def X;
2 def X1;
33
4 class C {
5 dag d = (X N);
4 class C1 {
5 dag d = (X1 N);
66 }
77
8 def VAL : C<13>;
8 def VAL1 : C1<13>;
9
10 // CHECK: def VAL1 {
11 // CHECK-NEXT: dag d = (X1 13)
912
1013
14 def X2;
15
16 class yclass;
17 def Y2 : yclass;
18
19 class C2 {
20 dag d = (X2 N);
21 dag e = (N X2);
22 }
23
24 def VAL2 : C2;
25
26 // CHECK: def VAL2 {
27 // CHECK-NEXT: dag d = (X2 Y2)
28 // CHECK-NEXT: dag e = (Y2 X2)
29