diff options
-rw-r--r-- | test/TableGen/MultiClass.td | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/TableGen/MultiClass.td b/test/TableGen/MultiClass.td new file mode 100644 index 0000000000..7e117d526a --- /dev/null +++ b/test/TableGen/MultiClass.td @@ -0,0 +1,17 @@ +// 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>; |