2011-10-06 21:39:59 +08:00
|
|
|
// RUN: llvm-tblgen %s | FileCheck %s
|
2010-03-21 07:08:45 +08:00
|
|
|
// XFAIL: vg_leak
|
2009-12-22 05:21:34 +08:00
|
|
|
// 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">;
|