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