1 // RUN: llvm-tblgen %s | FileCheck %s
4 // Test !size of lists.
13 // CHECK: int Val = 3;
17 // CHECK: int Val = 0;
21 // CHECK: int Val = 2;
24 class A<list<int> L> {
28 class B<list<string> L> {
33 def A2 : A<[1, 1, 2]>;
36 def B2 : B<["a", "b"]>;
38 // Test !size of DAGs.
41 // CHECK: int Val = 0;
45 // CHECK: int Val = 1;
49 // CHECK: int Val = 2;
53 // CHECK: int Val = 3;
57 // CHECK: int Val = 4;
67 def D1 : D<(op "string")>;
68 def D2 : D<(op "string", 42)>;
69 def D3 : D<(op "string", 42, (op "sub-dag"))>;
70 def D4 : D<(op "string", 42, (op "sub-dag"), D0.Val)>;
72 // Test !size of strings.
75 // CHECK: int Val = 0;
79 // CHECK: int Val = 1;
83 // CHECK: int Val = 2;
87 // CHECK: int Val = 3;
91 // CHECK: int Val = 29;
102 def S4 : S<"This is the end of the world!">;