repo.or.cz
/
llvm
/
stm8.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Land the long talked about "type system rewrite" patch. This
[llvm/stm8.git]
/
test
/
TableGen
/
MultiClass.td
blob
9f92b73dba65bdc1c437eab8c2f0b9f4e6a4e338
1
// RUN: tblgen %s | grep {zing = 4} | count 2
2
// XFAIL: vg_leak
3
4
class C1<int A, string B> {
5
int bar = A;
6
string thestr = B;
7
int zing;
8
}
9
10
def T : C1<4, "blah">;
11
12
multiclass t<int a> {
13
def S1 : C1<a, "foo"> {
14
int foo = 4;
15
let bar = 1;
16
}
17
def S2 : C1<a, "bar">;
18
}
19
20
defm FOO : t<42>;
21
22
def T4 : C1<6, "foo">;
23
24
let zing = 4 in
25
defm BAZ : t<3>;
26