2007-08-15 21:36:28 +08:00
|
|
|
// RUN: tblgen %s | grep {zing = 4} | count 2
|
2010-03-21 07:08:45 +08:00
|
|
|
// XFAIL: vg_leak
|
2006-10-12 02:12:14 +08:00
|
|
|
|
2006-09-02 05:14:37 +08:00
|
|
|
class C1<int A, string B> {
|
|
|
|
int bar = A;
|
|
|
|
string thestr = B;
|
2006-10-12 02:12:14 +08:00
|
|
|
int zing;
|
2006-09-02 05:14:37 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
def T : C1<4, "blah">;
|
|
|
|
|
|
|
|
multiclass t<int a> {
|
|
|
|
def S1 : C1<a, "foo"> {
|
|
|
|
int foo = 4;
|
|
|
|
let bar = 1;
|
|
|
|
}
|
|
|
|
def S2 : C1<a, "bar">;
|
|
|
|
}
|
|
|
|
|
|
|
|
defm FOO : t<42>;
|
2006-09-02 06:07:00 +08:00
|
|
|
|
|
|
|
def T4 : C1<6, "foo">;
|
2006-10-12 02:12:14 +08:00
|
|
|
|
|
|
|
let zing = 4 in
|
|
|
|
defm BAZ : t<3>;
|
|
|
|
|