Home | History | Annotate | Download | only in TableGen
      1 // RUN: llvm-tblgen %s | FileCheck %s
      2 // XFAIL: vg_leak
      3 
      4 // CHECK: --- Defs ---
      5 
      6 // CHECK: def A0 {
      7 // CHECK:   code Code = [{Simple}];
      8 // CHECK: }
      9 
     10 // CHECK: def B0 {
     11 // CHECK:   code Code = [{With paste 7}];
     12 // CHECK: }
     13 
     14 class A<code c> {
     15   code Code = c;
     16 }
     17 
     18 def A0 : A<"Simple">;
     19 
     20 class B<int i> : A<"With paste " # i>;
     21 
     22 def B0 : B<7>;
     23