blob: 3366c9d9cf7f4bba4e336c43ace9571da2d54d71 [file] [log] [blame]
David Greenedbf70742009-12-21 21:21:34 +00001// RUN: tblgen %s | FileCheck %s
2// CHECK: No subst
3// CHECK: No foo
4// CHECK: RECURSE foo
5
6class Recurse<string t> {
7 string Text = t;
8}
9
10class Text<string text> :
11 Recurse<!subst("RECURSE", "RECURSE", !subst("NORECURSE", "foo", text))>;
12
13def Ok1 : Text<"No subst">;
14def Ok2 : Text<"No NORECURSE">;
15def Trouble : Text<"RECURSE NORECURSE">;