1// RUN: llvm-tblgen %s | FileCheck %s 2// XFAIL: vg_leak 3 4// CHECK: zing = 4 5// CHECK: zing = 4 6// CHECK-NOT: zing = 4 7 8class C1<int A, string B> { 9 int bar = A; 10 string thestr = B; 11 int zing; 12} 13 14def T : C1<4, "blah">; 15 16multiclass t<int a> { 17 def S1 : C1<a, "foo"> { 18 int foo = 4; 19 let bar = 1; 20 } 21 def S2 : C1<a, "bar">; 22} 23 24defm FOO : t<42>; 25 26def T4 : C1<6, "foo">; 27 28let zing = 4 in 29 defm BAZ : t<3>; 30 31