Home | History | Annotate | Download | only in TableGen
      1 // RUN: tblgen %s | FileCheck %s
      2 // XFAIL: vg_leak
      3 // CHECK: No subst
      4 // CHECK: No foo
      5 // CHECK: RECURSE foo
      6 
      7 class Recurse<string t> {
      8   string Text = t;
      9 }
     10 
     11 class Text<string text> : 
     12   Recurse<!subst("RECURSE", "RECURSE", !subst("NORECURSE", "foo", text))>;
     13 
     14 def Ok1 : Text<"No subst">;
     15 def Ok2 : Text<"No NORECURSE">;
     16 def Trouble : Text<"RECURSE NORECURSE">;
     17