blob: ce7307703dccd2635b6344d19302ac37a0236261 [file] [log] [blame]
Peter Collingbourne7f7f2e92011-10-06 13:39:59 +00001// RUN: llvm-tblgen %s | FileCheck %s
David Greenedbf70742009-12-21 21:21:34 +00002// 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">;