You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
367 B
17 lines
367 B
4 months ago
|
// RUN: llvm-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">;
|