repo.or.cz
/
llvm-complete.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[llvm-dlltool] Respect NONAME keyword
[llvm-complete.git]
/
test
/
TableGen
/
size.td
blob
f7061e110790d6e72a1a122bc3b8cecb0b09193b
1
// RUN: llvm-tblgen %s | FileCheck %s
2
// XFAIL: vg_leak
3
4
// CHECK: --- Defs ---
5
6
// CHECK: def A1 {
7
// CHECK: int Val = 0;
8
// CHECK: }
9
10
// CHECK: def A2 {
11
// CHECK: int Val = 3;
12
// CHECK: }
13
14
// CHECK: def B1 {
15
// CHECK: int Val = 0;
16
// CHECK: }
17
18
// CHECK: def B2 {
19
// CHECK: int Val = 2;
20
// CHECK: }
21
22
class A<list<int> L> {
23
int Val = !size(L);
24
}
25
26
class B<list<string> L> {
27
int Val = !size(L);
28
}
29
30
def A1 : A<[]>;
31
def A2 : A<[1, 1, 2]>;
32
33
def B1 : B<[]>;
34
def B2 : B<["a", "b"]>;