// RUN: tblgen %s | grep {zing = 4} | count 4 class C1 { int bar = A; string thestr = B; int zing; } def T : C1<4, "blah">; multiclass t { def S1 : C1 { int foo = 4; let bar = 1; } def S2 : C1; } multiclass s : t { def S3 : C1 { int moo = 3; let bar = 1; } def S4 : C1; } defm FOO : s<42, 24>; def T4 : C1<6, "foo">; let zing = 4 in defm BAZ : s<3, 4>;