llvm-6502/test/TableGen/MultiClass.td
Chris Lattner 9595159451 Make this harder
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30036 91177308-0d34-0410-b5e6-96231b3b80d8
2006-09-01 22:07:00 +00:00

20 lines
266 B
TableGen

// RUN: tblgen %s
class C1<int A, string B> {
int bar = A;
string thestr = B;
}
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>;
def T4 : C1<6, "foo">;