mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 23:18:58 +00:00
ef4e0c2827
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30028 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
242 B
TableGen
18 lines
242 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>;
|