repo.or.cz
/
llvm-core.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[Alignment][NFC] Migrate Instructions to Align
[llvm-core.git]
/
test
/
TableGen
/
MultiClass.td
blob
9c3996345813408f1b73ae0ca670e9bb931de7f1
1
// RUN: llvm-tblgen %s | FileCheck %s
2
// XFAIL: vg_leak
3
4
// CHECK: zing = 4
5
// CHECK: zing = 4
6
// CHECK-NOT: zing = 4
7
8
class C1<int A, string B> {
9
int bar = A;
10
string thestr = B;
11
int zing;
12
}
13
14
def T : C1<4, "blah">;
15
16
multiclass t<int a> {
17
def S1 : C1<a, "foo"> {
18
int foo = 4;
19
let bar = 1;
20
}
21
def S2 : C1<a, "bar">;
22
}
23
24
defm FOO : t<42>;
25
26
def T4 : C1<6, "foo">;
27
28
let zing = 4 in
29
defm BAZ : t<3>;
30