Home | History | Annotate | Download | only in TableGen
      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 
      8 class C1<int A, string B> { 
      9   int bar = A;
     10   string thestr = B;
     11   int zing;
     12 }
     13 
     14 def T : C1<4, "blah">;
     15 
     16 multiclass 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 
     24 defm FOO : t<42>;
     25 
     26 def T4 : C1<6, "foo">;
     27 
     28 let zing = 4 in
     29   defm BAZ : t<3>;
     30 
     31