mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
78a1609fa2
llvm-svn: 141294
17 lines
367 B
TableGen
17 lines
367 B
TableGen
// 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">;
|