diff --git a/test/TableGen/MultiClass.td b/test/TableGen/MultiClass.td new file mode 100644 index 00000000000..7e117d526ab --- /dev/null +++ b/test/TableGen/MultiClass.td @@ -0,0 +1,17 @@ +// RUN: tblgen %s +class C1 { + int bar = A; + string thestr = B; +} + +def T : C1<4, "blah">; + +multiclass t { + def S1 : C1 { + int foo = 4; + let bar = 1; + } + def S2 : C1; +} + +defm FOO : t<42>;