aboutsummaryrefslogtreecommitdiff
path: root/test/TableGen/subst2.td
blob: 584266ef2335748f41c9b397269cde143fcdddea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: tblgen %s | FileCheck %s
// XFAIL: vg_leak
// CHECK: No subst
// CHECK: No foo
// CHECK: RECURSE foo

class Recurse<string t> {
  string Text = t;
}

class Text<string text> : 
  Recurse<!subst("RECURSE", "RECURSE", !subst("NORECURSE", "foo", text))>;

def Ok1 : Text<"No subst">;
def Ok2 : Text<"No NORECURSE">;
def Trouble : Text<"RECURSE NORECURSE">;