mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-26 23:29:22 +00:00
16 lines
344 B
TableGen
16 lines
344 B
TableGen
|
// RUN: tblgen %s | FileCheck %s
|
||
|
// 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">;
|